init categories in getCategories()

This commit is contained in:
Uwe Steinmann 2021-09-30 15:44:54 +02:00
parent 1b1e60f88f
commit 0260b8dad9

View File

@ -470,6 +470,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
if (is_bool($resArr) && !$resArr)
return false;
$this->_categories = [];
foreach ($resArr as $row) {
$cat = new SeedDMS_Core_DocumentCategory($row['id'], $row['name']);
$cat->setDMS($this->_dms);