mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +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 */
|
/* Check if 'onAttributeValidate' callback is set */
|
||||||
if(isset($this->_dms->callbacks['onAttributeValidate'])) {
|
if(isset($this->_dms->callbacks['onAttributeValidate'])) {
|
||||||
foreach($this->_dms->callbacks['onAttributeValidate'] as $callback) {
|
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))
|
if(is_bool($ret))
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
- SeedDMS_Folder_DMS::getAccessList() and getDefaultAccess() do not return fals anymore if the parent does not exists. They just stop inheritance.
|
- 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>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user