Fix relationship doc <-> course

This commit is contained in:
2019-09-08 11:22:53 +02:00
parent 8e3eafbdaf
commit a1e60adde9

View File

@@ -58,7 +58,8 @@ class Doc extends PhpObject {
} }
public function getList() { public function getList() {
$asDocs = $this->oDb->selectRows(array('select'=>array(Db::getId(self::DOC_TABLE), 'type', 'filename'), 'from'=>self::DOC_TABLE, 'constraints'=>$this->getDocKeys())); $this->oDb->setTrace(true);
$asDocs = $this->oDb->selectRows(array('select'=>array(Db::getId(self::DOC_TABLE), 'type', 'filename'), 'from'=>self::DOC_TABLE, 'constraint'=>$this->getDocKeys()));
foreach($asDocs as &$asDoc) $asDoc['filepath'] = self::getFilePath($asDoc['filename']); foreach($asDocs as &$asDoc) $asDoc['filepath'] = self::getFilePath($asDoc['filename']);
return $asDocs; return $asDocs;