Baufreigabe checks for missing required fields

This commit is contained in:
Frank Schubert
2021-09-02 20:43:48 +02:00
parent d54801fa36
commit 0406a299dc
4 changed files with 69 additions and 2 deletions

View File

@@ -25,6 +25,20 @@ class Building extends mfBaseModel {
return $address;
}
protected function afterSave() {
$this->resetProperties();
}
public function resetProperties() {
$this->network = null;
$this->pop = null;
$this->type = null;
$this->status = null;
$this->pipeworder = null;
$this->terminations = null;
$this->workflowitems = null;
$this->files = null;
}
public function getNewObjectCode() {
if(!$this->zip) {