From 576ee5aaab2379505a45ff754bc1ec5b0cea8fcc Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 18 Sep 2020 16:17:30 +0200 Subject: [PATCH] use same label for all types of postcode in address --- lib/ClassTypes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ClassTypes.php b/lib/ClassTypes.php index 4077d211..f2c1ab84 100644 --- a/lib/ClassTypes.php +++ b/lib/ClassTypes.php @@ -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) { -- 2.39.5