added ConstructionConsentController::deleteAction()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user