Fixed selects to keep values after network change
This commit is contained in:
@@ -74,6 +74,7 @@ class BuildingController extends mfBaseController {
|
||||
$data['status_id'] = ($r->status_id) ? $r->status_id : null;
|
||||
$data['pipeworker_id'] = ($r->pipeworker_id) ? $r->pipeworker_id : null;
|
||||
$data['lineworker_id'] = ($r->lineworker_id) ? $r->lineworker_id : null;
|
||||
$data['networksection_id'] = ($r->networksection_id) ? $r->networksection_id : null;
|
||||
|
||||
$data['oan_id'] = $r->oan_id;
|
||||
$data['street'] = $r->street;
|
||||
@@ -105,7 +106,6 @@ class BuildingController extends mfBaseController {
|
||||
}
|
||||
|
||||
//var_dump($address);exit;
|
||||
|
||||
$new_id = $building->save();
|
||||
if(!$new_id) {
|
||||
$this->layout()->setFlash("Fehler beim Speichern", "error");
|
||||
|
||||
@@ -6,6 +6,8 @@ class BuildingModel {
|
||||
public $type_id = null;
|
||||
public $status_id = null;
|
||||
public $pipeworker_id = null;
|
||||
public $lineworker_id = null;
|
||||
public $networksection_id = null;
|
||||
public $code = null;
|
||||
public $oan_id = null;
|
||||
public $street = null;
|
||||
@@ -13,6 +15,7 @@ class BuildingModel {
|
||||
public $city = null;
|
||||
public $gps_lat = null;
|
||||
public $gps_long = null;
|
||||
public $laea = null;
|
||||
public $contact = null;
|
||||
public $phone = null;
|
||||
public $email = null;
|
||||
|
||||
Reference in New Issue
Block a user