pass document itself to callback onPostRemoveDocument

This commit is contained in:
Uwe Steinmann 2021-09-24 10:16:25 +02:00
parent 233e464692
commit 0f5b189838

View File

@ -2502,7 +2502,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
/* Check if 'onPostRemoveDocument' callback is set */
if(isset($this->_dms->callbacks['onPostRemoveDocument'])) {
foreach($this->_dms->callbacks['onPostRemoveDocument'] as $callback) {
if(!call_user_func($callback[0], $callback[1], $this->_id)) {
if(!call_user_func($callback[0], $callback[1], $this)) {
}
}
}