set dms of user instances

This commit is contained in:
Uwe Steinmann 2020-09-23 11:39:00 +02:00
parent 34c88aadd3
commit ad9afab6e0
2 changed files with 4 additions and 1 deletions

View File

@ -196,6 +196,7 @@ class SeedDMS_Core_Group { /* {{{ */
foreach ($resArr as $row) {
/** @var SeedDMS_Core_User $user */
$user = new $classname($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
$user->setDMS($this->_dms);
array_push($this->_users, $user);
}
}
@ -221,6 +222,7 @@ class SeedDMS_Core_Group { /* {{{ */
foreach ($resArr as $row) {
/** @var SeedDMS_Core_User $user */
$user = new $classname($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["role"], $row['hidden']);
$user->setDMS($this->_dms);
array_push($managers, $user);
}
return $managers;
@ -497,7 +499,7 @@ class SeedDMS_Core_Group { /* {{{ */
$notifications = array();
foreach ($resArr as $row) {
$not = new SeedDMS_Core_Notification($row["target"], $row["targetType"], $row["userID"], $row["groupID"]);
$not->setDMS($this);
$not->setDMS($this->_dms);
array_push($notifications, $not);
}

View File

@ -27,6 +27,7 @@
- SeedDMS_Core_DMS::getDocumentList() returns false, if an unknown list passed
- SeedDMS_Core_Document::getDocumentFiles() has new parameter to select only those files attached to a specific version of the document
- removing a document version will not remove attachments of the document anymore
- set dms of new user instances in SeedDMS_Core_Group
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">