Assign a doc to a workshop and not a course

This commit is contained in:
2019-09-18 19:21:02 +02:00
parent 49fbf665e8
commit c36d33890e
5 changed files with 25 additions and 14 deletions

View File

@@ -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));