Added image upload to ConstructionConsent Form
This commit is contained in:
@@ -7,6 +7,7 @@ class ConstructionConsent extends mfBaseModel {
|
||||
private $adb_hausnummer;
|
||||
private $adb_strasse;
|
||||
private $owners;
|
||||
private $file;
|
||||
private $creator;
|
||||
private $editor;
|
||||
|
||||
@@ -87,6 +88,15 @@ class ConstructionConsent extends mfBaseModel {
|
||||
return $this->owners;
|
||||
}
|
||||
|
||||
if($name == "file") {
|
||||
if(!$this->id) return null;
|
||||
$file = ConstructionConsentFile::getFirst(["constructionconsent_id" => $this->id]);
|
||||
if($file) {
|
||||
$this->file = $file;
|
||||
}
|
||||
return $this->file;
|
||||
}
|
||||
|
||||
|
||||
if($name == "creator") {
|
||||
$this->creator = mfValuecache::singleton()->get("Worker-id-".$this->create_by);
|
||||
|
||||
Reference in New Issue
Block a user