added no_aftersave param to Wohneinheit/Hausnummer/Preorder afterSave()

This commit is contained in:
Frank Schubert
2025-08-05 17:57:22 +02:00
parent 9d7b0f1ec5
commit 8f2b627706
3 changed files with 6 additions and 0 deletions
@@ -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) {