Fixed setting status_id of building after Pipework save
This commit is contained in:
@@ -34,7 +34,7 @@ class Building extends mfBaseModel {
|
|||||||
$this->pop = null;
|
$this->pop = null;
|
||||||
$this->type = null;
|
$this->type = null;
|
||||||
$this->status = null;
|
$this->status = null;
|
||||||
$this->pipeworder = null;
|
$this->pipeworker = null;
|
||||||
$this->terminations = null;
|
$this->terminations = null;
|
||||||
$this->workflowitems = null;
|
$this->workflowitems = null;
|
||||||
$this->files = null;
|
$this->files = null;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class OrderController extends mfBaseController {
|
|||||||
// pagination defaults
|
// pagination defaults
|
||||||
$pagination = [];
|
$pagination = [];
|
||||||
$pagination['start'] = 0;
|
$pagination['start'] = 0;
|
||||||
$pagination['count'] = 5;
|
$pagination['count'] = 20;
|
||||||
$pagination['maxItems'] = 0;
|
$pagination['maxItems'] = 0;
|
||||||
|
|
||||||
if(is_numeric($this->request->s)) {
|
if(is_numeric($this->request->s)) {
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ class PipeworkController extends mfBaseController {
|
|||||||
$building->status_id = 5;
|
$building->status_id = 5;
|
||||||
$building->save();
|
$building->save();
|
||||||
}
|
}
|
||||||
|
var_dump($building);exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// file upload
|
// file upload
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class Termination extends mfBaseModel {
|
|||||||
public function resetProperties() {
|
public function resetProperties() {
|
||||||
$this->building = null;
|
$this->building = null;
|
||||||
$this->status = null;
|
$this->status = null;
|
||||||
$this->lineworder = null;
|
$this->lineworker = null;
|
||||||
$this->workflowitems = null;
|
$this->workflowitems = null;
|
||||||
$this->files = null;
|
$this->files = null;
|
||||||
$this->creator = null;
|
$this->creator = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user