LSldapObject: fix triggering after_modify event on create

This commit is contained in:
Benjamin Renard 2021-05-21 11:28:38 +02:00
parent 59d6d0865d
commit 4b634e408d

View file

@ -372,9 +372,11 @@ class LSldapObject extends LSlog_staticLoggerClass {
}
}
$new = $this -> isNew();
if ($this -> submitChange($idForm)) {
self :: log_debug($this."->_updateData(): changes are submited");
// Event After Modify
if (!$new && $idForm != 'create') {
$this -> fireEvent('after_modify');
// $this -> attrs[*] => After Modify
@ -383,6 +385,7 @@ class LSldapObject extends LSlog_staticLoggerClass {
$this -> attrs[$attr_name] -> fireEvent('after_modify');
}
}
}
$this -> reloadData();
$this -> refreshForm($idForm);
}