From a1e60adde9cc839ff5963c2c1287c1ab53c00115 Mon Sep 17 00:00:00 2001 From: Franzz Date: Sun, 8 Sep 2019 11:22:53 +0200 Subject: [PATCH] Fix relationship doc <-> course --- inc/doc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/doc.php b/inc/doc.php index 3bd163f..2005db6 100644 --- a/inc/doc.php +++ b/inc/doc.php @@ -58,7 +58,8 @@ class Doc extends PhpObject { } 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']); return $asDocs;