Skip to content

Commit

Permalink
BKDK-367 Remove leading 00's from the door/apartment number
Browse files Browse the repository at this point in the history
  • Loading branch information
juuliabellcom committed Mar 8, 2021
1 parent 5d1cd64 commit 58735fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/os2web/DataLookup/ServiceplatformenCPR.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function getAddress($cpr) {
'road' => isset($result['vejadresseringsnavn']) ? $result['vejadresseringsnavn'] : '',
'road_no' => isset($result['husnummer']) ? ltrim($result['husnummer'], '0') : '',
'floor' => isset($result['etage']) ? $result['etage'] : '',
'door' => isset($result['sidedoer']) ? $result['sidedoer'] : '',
'door' => isset($result['sidedoer']) ? ltrim($result['sidedoer'], '0') : '',
'zipcode' => isset($result['postnummer']) ? $result['postnummer'] : '',
'city' => isset($result['postdistrikt']) ? $result['postdistrikt'] : '',
'coname' => isset($result['conavn']) ? $result['conavn'] : '',
Expand Down

0 comments on commit 58735fe

Please sign in to comment.