pass attribute value to callback 'onAttributeValidate'

This commit is contained in:
Uwe Steinmann 2020-12-14 14:32:40 +01:00
parent 31e45022f1
commit ec5a17f4f3
2 changed files with 2 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
/* Check if 'onAttributeValidate' callback is set */
if(isset($this->_dms->callbacks['onAttributeValidate'])) {
foreach($this->_dms->callbacks['onAttributeValidate'] as $callback) {
$ret = call_user_func($callback[0], $callback[1], $this);
$ret = call_user_func($callback[0], $callback[1], $this, $attrvalue);
if(is_bool($ret))
return $ret;
}

View File

@ -25,6 +25,7 @@
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
- SeedDMS_Folder_DMS::getAccessList() and getDefaultAccess() do not return fals anymore if the parent does not exists. They just stop inheritance.
- pass attribute value to callback 'onAttributeValidate'
</notes>
<contents>
<dir baseinstalldir="SeedDMS" name="/">