Fix relationship doc <-> course
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user