set old and new attribute value in notification

This commit is contained in:
Uwe Steinmann 2018-03-19 08:31:39 +01:00
parent 15d1e7ef2a
commit a8576bef66

View File

@ -81,7 +81,9 @@ if($attributes) {
$params = array();
$params['name'] = $document->getName();
$params['version'] = $version->getVersion();
$params['attribute'] = $attribute;
$params['attribute_name'] = $dms->getAttributeDefinition($attrdefid)->getName();
$params['attribute_old_value'] = $oldattributes[$attrdefid]->getValue();
$params['attribute_new_value'] = $attribute;
$params['folder_path'] = $folder->getFolderPathPlain();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$version->getVersion();