use same label for all types of postcode in address

This commit is contained in:
Sarah Hoffmann
2020-09-18 16:17:30 +02:00
parent 4c9cfe2532
commit 576ee5aaab

View File

@@ -18,6 +18,8 @@ function getLabelTag($aPlace, $sCountry = null)
$sLabel = $aPlace['place_type'];
} elseif ($aPlace['class'] == 'boundary' && $aPlace['type'] == 'administrative') {
$sLabel = getBoundaryLabel($iRank/2, $sCountry);
} elseif ($aPlace['type'] == 'postal_code') {
$sLabel = 'postcode';
} elseif ($iRank < 26) {
$sLabel = $aPlace['type'];
} elseif ($iRank < 28) {