mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
pass attribute value to callback 'onAttributeValidate'
This commit is contained in:
parent
31e45022f1
commit
ec5a17f4f3
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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="/">
|
||||
|
|
Loading…
Reference in New Issue
Block a user