added ConstructionConsentController::deleteAction()

This commit is contained in:
Frank Schubert
2025-02-14 16:19:05 +01:00
parent 61b192e1c9
commit 7575ef05fb
6 changed files with 74 additions and 32 deletions

View File

@@ -5,6 +5,12 @@ class ConstructionConsentFile extends mfBaseModel {
private $creator;
private $editor;
protected function beforeDelete() {
if(!$this->id) return true;
$this->getProperty("file")->delete();
return true;
}
public function getProperty($name) {
if($this->$name == null) {