added no_aftersave param to Wohneinheit/Hausnummer/Preorder afterSave()
This commit is contained in:
@@ -18,6 +18,8 @@ class ADBHausnummer extends mfBaseModel {
|
||||
}
|
||||
|
||||
public function afterSave($_params = []) {
|
||||
if(array_key_exists("no_aftersave", $_params) && $_params["no_aftersave"]) return true;
|
||||
|
||||
// prevent potential infinite loop
|
||||
$nesting_level = mfValuecache::singleton()->get("adbhausnummer-save-nesting-level-".$this->id);
|
||||
if(!$nesting_level) {
|
||||
|
||||
@@ -26,6 +26,8 @@ class ADBWohneinheit extends mfBaseModel {
|
||||
if(!$this->id) return true;
|
||||
if(!$this->hausnummer_id) return true;
|
||||
|
||||
if(array_key_exists("no_aftersave", $_params) && $_params["no_aftersave"]) return true;
|
||||
|
||||
// prevent potential infinite loop
|
||||
$nesting_level = mfValuecache::singleton()->get("adbwohneinheit-save-nesting-level-".$this->id);
|
||||
if(!$nesting_level) {
|
||||
|
||||
@@ -57,6 +57,8 @@ class Preorder extends mfBaseModel {
|
||||
$this->creator = null;
|
||||
$this->editor = null;
|
||||
|
||||
if(array_key_exists("no_aftersave", $_params) && $_params["no_aftersave"]) return true;
|
||||
|
||||
// prevent potential infinite loop
|
||||
$nesting_level = mfValuecache::singleton()->get("preorder-save-nesting-level-" . $this->id);
|
||||
if(!$nesting_level) {
|
||||
|
||||
Reference in New Issue
Block a user