Merge branch 'fronkdev' into 'master'

Fixed not being able to save ADBHausnummer and Wohneinheit

See merge request fronk/thetool!951
This commit is contained in:
Frank Schubert
2025-01-27 12:32:13 +00:00
2 changed files with 0 additions and 21 deletions

View File

@@ -17,17 +17,6 @@ class ADBHausnummer extends mfBaseModel {
mfValuecache::singleton()->set("adbhausnummer-save-nesting-level-".$this->id, 0);
}
protected function beforeUpdate($data) {
if(!array_key_exists("edit_by", $data)) {
$me = new User();
$me->loadMe();
$data["edit_by"] = $me->id;
}
return $data;
}
public function afterSave() {
// prevent potential infinite loop
$nesting_level = mfValuecache::singleton()->get("adbhausnummer-save-nesting-level-".$this->id);

View File

@@ -14,16 +14,6 @@ class ADBWohneinheit extends mfBaseModel {
$this->table = "Wohneinheit";
}
protected function beforeUpdate($data) {
if(!array_key_exists("edit_by", $data)) {
$me = new User();
$me->loadMe();
$data["edit_by"] = $me->id;
}
return $data;
}
protected function afterSave() {
if(!$this->id) return true;
if(!$this->hausnummer_id) return true;