Fixed Showing Orders of users of same company
This commit is contained in:
@@ -148,7 +148,9 @@ class BuildingController extends mfBaseController {
|
||||
|
||||
$this->layout()->set("networksections", NetworksectionModel::getAll());
|
||||
|
||||
|
||||
if($this->request->network_id) {
|
||||
$this->layout()->set("request_network_id", $this->request->network_id);
|
||||
}
|
||||
}
|
||||
|
||||
protected function editAction() {
|
||||
@@ -415,6 +417,7 @@ class BuildingController extends mfBaseController {
|
||||
$u['city'] = $building->city;
|
||||
$u['oan_id'] = $building->oan_id;
|
||||
$u['code'] = $building->code;
|
||||
$u['units'] = ($building->units) ? $building->units : 1;
|
||||
$u['status'] = $building->status->name;
|
||||
$unsorted[$building->street."-".$building->id] = $u;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user