Assign a doc to a workshop and not a course
This commit is contained in:
@@ -45,7 +45,7 @@ class Course extends PhpObject {
|
||||
}
|
||||
|
||||
public function getCourses($iWorkshopId=0) {
|
||||
$asInfo = array('select'=> array(Db::getId(self::COURSE_TABLE), 'description', 'timeslot'), 'from' => self::COURSE_TABLE);
|
||||
$asInfo = array('select'=> array(Db::getId(self::COURSE_TABLE), Db::getId(self::WS_TABLE), 'description', 'timeslot'), 'from' => self::COURSE_TABLE);
|
||||
if($iWorkshopId > 0) $asInfo['constraint'] = array(Db::getId(self::WS_TABLE) => $iWorkshopId);
|
||||
|
||||
return $this->oDb->selectRows($asInfo, Db::getId(self::COURSE_TABLE));
|
||||
|
||||
Reference in New Issue
Block a user