Various Bugfixes
This commit is contained in:
@@ -38,6 +38,7 @@ class Termination extends mfBaseModel {
|
||||
}
|
||||
|
||||
$bcode = $this->getProperty("building")->code;
|
||||
var_dump($bcode);
|
||||
if(!$bcode) {
|
||||
return false;
|
||||
}
|
||||
@@ -50,6 +51,8 @@ class Termination extends mfBaseModel {
|
||||
while($data = $this->db->fetch_object($res)) {
|
||||
$codes[] = $data->code;
|
||||
}
|
||||
} else {
|
||||
return $bcode.".001";
|
||||
}
|
||||
|
||||
if(count($codes)) {
|
||||
@@ -156,7 +159,7 @@ class Termination extends mfBaseModel {
|
||||
}
|
||||
|
||||
if($name == "patching") {
|
||||
$this->patching = PatchingModel::getFirst(["termination_i" => $this->id]);
|
||||
$this->patching = PatchingModel::getFirst(["termination_id" => $this->id]);
|
||||
return $this->patching;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user