adb import: Fixed always setting fcp_name NULL
This commit is contained in:
@@ -328,7 +328,7 @@ class AddressHelper
|
||||
//$long = $building->address->longitude;
|
||||
$unit_count = $building->homesCount;
|
||||
$lot_num = $this->trimExtra($building->address->lotNumber);
|
||||
$fcp_name = false;
|
||||
//$fcp_name = false;
|
||||
|
||||
$adrcd = false;
|
||||
$subcd = false;
|
||||
@@ -508,7 +508,7 @@ class AddressHelper
|
||||
"unit_count" => ($unit_count) ? $unit_count : 1,
|
||||
"freigabe" => $this->netzgebiet->freigabe,
|
||||
"rimo_id" => $rimo_id,
|
||||
"rimo_fcp_name" => ($fcp_name) ? $fcp_name : null
|
||||
//"rimo_fcp_name" => ($fcp_name) ? $fcp_name : null
|
||||
];
|
||||
$hausnummer = ADBHausnummerModel::create($hausnummer_data);
|
||||
//var_dump($hausnummer);exit;
|
||||
@@ -620,13 +620,13 @@ class AddressHelper
|
||||
}
|
||||
}
|
||||
|
||||
if ($hausnummer->rimo_fcp_name != $fcp_name) {
|
||||
/*if ($fcp_name && $hausnummer->rimo_fcp_name != $fcp_name) {
|
||||
$hausnummer->rimo_fcp_name = $fcp_name;
|
||||
if(!$hausnummer->save()) {
|
||||
$this->logFindAddressError("[EE] Error saving Hausnummer ($addr_dbg_str)");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
if($update_freigabe && $hausnummer->freigabe != $this->netzgebiet->freigabe) {
|
||||
$hausnummer->freigabe = $this->netzgebiet->freigabe;
|
||||
if(!$hausnummer->save()) {
|
||||
|
||||
Reference in New Issue
Block a user