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