Fixed setting status_id of building after Pipework save

This commit is contained in:
Frank Schubert
2021-09-14 22:45:01 +02:00
parent 9fe25d90e3
commit 371697a24c
4 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class Building extends mfBaseModel {
$this->pop = null;
$this->type = null;
$this->status = null;
$this->pipeworder = null;
$this->pipeworker = null;
$this->terminations = null;
$this->workflowitems = null;
$this->files = null;

View File

@@ -27,7 +27,7 @@ class OrderController extends mfBaseController {
// pagination defaults
$pagination = [];
$pagination['start'] = 0;
$pagination['count'] = 5;
$pagination['count'] = 20;
$pagination['maxItems'] = 0;
if(is_numeric($this->request->s)) {

View File

@@ -257,6 +257,7 @@ class PipeworkController extends mfBaseController {
$building->status_id = 5;
$building->save();
}
var_dump($building);exit;
}
// file upload

View File

@@ -75,7 +75,7 @@ class Termination extends mfBaseModel {
public function resetProperties() {
$this->building = null;
$this->status = null;
$this->lineworder = null;
$this->lineworker = null;
$this->workflowitems = null;
$this->files = null;
$this->creator = null;