From a01b62a6d0428219d0e4fcfc60344fdef42e618b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 30 Aug 2023 16:33:33 +0200 Subject: [PATCH] set folder_id in params for notification msg --- inc/inc.ClassNotificationService.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/inc.ClassNotificationService.php b/inc/inc.ClassNotificationService.php index 7fac59f59..9dd23b033 100644 --- a/inc/inc.ClassNotificationService.php +++ b/inc/inc.ClassNotificationService.php @@ -452,6 +452,7 @@ class SeedDMS_NotificationService { $message = "new_subfolder_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['folder_name'] = $parent->getName(); $params['folder_path'] = $parent->getFolderPathPlain(); $params['username'] = $user->getFullName(); @@ -686,6 +687,7 @@ class SeedDMS_NotificationService { $message = "folder_attribute_changed_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['attribute_name'] = $attribute->getAttributeDefinition()->getName(); $params['attribute_old_value'] = $oldattributes[$attrdefid]->getValue(); $params['attribute_new_value'] = isset($newattributes[$attrdefid]) ? $newattributes[$attrdefid]->getValue() : ''; @@ -765,6 +767,7 @@ class SeedDMS_NotificationService { $message = "folder_comment_changed_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['folder_path'] = $folder->getFolderPathPlain(); $params['old_comment'] = $oldcomment; $params['new_comment'] = $folder->getComment(); @@ -852,6 +855,7 @@ class SeedDMS_NotificationService { $message = "folder_renamed_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['old_name'] = $oldname; $params['folder_path'] = $folder->getFolderPathPlain(); $params['username'] = $user->getFullName(); @@ -921,6 +925,7 @@ class SeedDMS_NotificationService { $message = "folder_moved_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['old_folder_path'] = $oldfolder->getFolderPathPlain(); $params['new_folder_path'] = $targetfolder->getFolderPathPlain(); $params['username'] = $user->getFullName(); @@ -1024,6 +1029,7 @@ class SeedDMS_NotificationService { $message = "folder_notify_added_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['folder_path'] = $folder->getFolderPathPlain(); $params['username'] = $user->getFullName(); $params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewFolder.php?folderid=".$folder->getID(); @@ -1060,6 +1066,7 @@ class SeedDMS_NotificationService { $message = "folder_notify_deleted_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); $params['folder_path'] = $folder->getFolderPathPlain(); $params['username'] = $user->getFullName(); $params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewFolder.php?folderid=".$folder->getID(); @@ -1278,6 +1285,7 @@ class SeedDMS_NotificationService { $message = "folder_ownership_changed_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); if($folder->getParent()) $params['folder_path'] = $folder->getParent()->getFolderPathPlain(); else @@ -1325,6 +1333,7 @@ class SeedDMS_NotificationService { $message = "folder_access_permission_changed_email_body"; $params = array(); $params['name'] = $folder->getName(); + $params['folder_id'] = $folder->getId(); if($folder->getParent()) $params['folder_path'] = $folder->getParent()->getFolderPathPlain(); else