mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
get attribute as string, set folder_id when sending 'folder_attribute_added'
This commit is contained in:
parent
5d5e4e7741
commit
8d758085a4
|
@ -642,7 +642,7 @@ class SeedDMS_NotificationService {
|
|||
$params['name'] = $document->getName();
|
||||
$params['document_id'] = $document->getId();
|
||||
$params['attribute_name'] = $attribute->getAttributeDefinition()->getName();
|
||||
$params['attribute_old_value'] = $oldattributes[$attrdefid]->getValue();
|
||||
$params['attribute_old_value'] = $oldattributes[$attrdefid]->getValueAsString();
|
||||
$params['attribute_new_value'] = isset($newattributes[$attrdefid]) ? $newattributes[$attrdefid]->getValue() : '';
|
||||
$params['folder_path'] = $folder->getFolderPathPlain();
|
||||
$params['username'] = $user->getFullName();
|
||||
|
@ -667,7 +667,7 @@ class SeedDMS_NotificationService {
|
|||
$params['name'] = $document->getName();
|
||||
$params['document_id'] = $document->getId();
|
||||
$params['attribute_name'] = $dms->getAttributeDefinition($attrdefid)->getName();
|
||||
$params['attribute_value'] = $attribute->getValue();
|
||||
$params['attribute_value'] = $attribute->getValueAsString();
|
||||
$params['folder_path'] = $folder->getFolderPathPlain();
|
||||
$params['username'] = $user->getFullName();
|
||||
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
|
||||
|
@ -697,8 +697,8 @@ class SeedDMS_NotificationService {
|
|||
$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() : '';
|
||||
$params['attribute_old_value'] = $oldattributes[$attrdefid]->getValueAsString();
|
||||
$params['attribute_new_value'] = isset($newattributes[$attrdefid]) ? $newattributes[$attrdefid]->getValueAsString() : '';
|
||||
$params['folder_path'] = $folder->getFolderPathPlain();
|
||||
$params['username'] = $user->getFullName();
|
||||
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewFolder.php?folderid=".$folder->getID();
|
||||
|
@ -720,8 +720,9 @@ class SeedDMS_NotificationService {
|
|||
$message = "folder_attribute_added_email_body";
|
||||
$params = array();
|
||||
$params['name'] = $folder->getName();
|
||||
$params['folder_id'] = $folder->getId();
|
||||
$params['attribute_name'] = $dms->getAttributeDefinition($attrdefid)->getName();
|
||||
$params['attribute_value'] = $attribute->getValue();
|
||||
$params['attribute_value'] = $attribute->getValueAsString();
|
||||
$params['folder_path'] = $folder->getFolderPathPlain();
|
||||
$params['username'] = $user->getFullName();
|
||||
$params['url'] = getBaseUrl().$this->settings->_httpRoot."out/out.ViewFolder.php?folderid=".$folder->getID();
|
||||
|
|
Loading…
Reference in New Issue
Block a user