Fixed not being able to save ADBHausnummer and Wohneinheit

This commit is contained in:
Frank Schubert
2025-01-27 13:31:35 +01:00
parent 9657fc56fb
commit 9f1aa95367
2 changed files with 0 additions and 21 deletions
@@ -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;