mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
eca5f3608f
|
@ -257,12 +257,13 @@ class SeedDMS_Core_Attribute { /* {{{ */
|
|||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
$oldvalue = $this->_value;
|
||||
$this->_value = $value;
|
||||
|
||||
/* Check if 'onPostUpdateAttribute' callback is set */
|
||||
if(isset($this->_dms->callbacks['onPostUpdateAttribute'])) {
|
||||
foreach($this->_dms->callbacks['onPostUpdateAttribute'] as $callback) {
|
||||
if(!call_user_func($callback[0], $callback[1], $this->_obj, $this->_attrdef, $value)) {
|
||||
if(!call_user_func($callback[0], $callback[1], $this->_obj, $this->_attrdef, $value, $oldvalue)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user