This commit is contained in:
Luca Haid
2025-05-06 11:28:55 +02:00
parent 4c4dc1b00c
commit 265f07ed53
6 changed files with 91 additions and 15 deletions
@@ -9,6 +9,10 @@ class ConstructionConsentOwner extends mfBaseModel {
protected function afterSave() {
$this->createHistory();
if($this->data->status !== 'new' && $this->data->result === null) {
$this->data->result = 'open';
$this->save();
}
}
protected function beforeDelete() {