Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2021-02-05 13:28:34 +01:00
commit c524add775
4 changed files with 6 additions and 3 deletions

View File

@ -203,6 +203,7 @@
- overhaul notifications, type of receiver is now passed to notification
service which allows a more fine grained filtering
- show difference in number of documents on chart page
- list users not Folder Notifiy page which has been disabled
--------------------------------------------------------------------------------
Changes in version 5.1.21

View File

@ -1547,10 +1547,11 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
* notification for the folder
*
* @param integer $type type of notification (not yet used)
* @param bool $incdisabled set to true if disabled user shall be included
* @return SeedDMS_Core_User[]|SeedDMS_Core_Group[]|bool array with a the elements 'users' and 'groups' which
* contain a list of users and groups.
*/
function getNotifyList($type=0) { /* {{{ */
function getNotifyList($type=0, $incdisabled=false) { /* {{{ */
if (empty($this->_notifyList)) {
$db = $this->_dms->getDB();
@ -1564,7 +1565,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
{
if ($row["userID"] != -1) {
$u = $this->_dms->getUser($row["userID"]);
if($u && !$u->isDisabled())
if($u && (!$u->isDisabled() || $incdisabled))
array_push($this->_notifyList["users"], $u);
} else {//if ($row["groupID"] != -1)
$g = $this->_dms->getGroup($row["groupID"]);

View File

@ -1880,6 +1880,7 @@ add method SeedDMS_Core_DatabaseAccess::setLogFp()
- add SeedDMS_Core_User->isType() and SeedDMS_Core_Group->isType()
- add SeedDMS_Core_User->getDMS() and SeedDMS_Core_Group->getDMS()
- add new parameter to SeedDMS_Core_DMS->getDocumentList() for skipping expired documents
- add parameter $incdisabled to SeedDMS_Core_Folder::getNotifyList()
</notes>
</release>
<release>

View File

@ -71,7 +71,7 @@ $(document).ready(function() {
$allGroups = $this->params['allgroups'];
$sortusersinlist = $this->params['sortusersinlist'];
$notifyList = $folder->getNotifyList();
$notifyList = $folder->getNotifyList(0, true);
$this->htmlStartPage(getMLText("folder_title", array("foldername" => htmlspecialchars($folder->getName()))));
$this->globalNavigation($folder);