mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
check for correct array for country codes
fixes trac ticket 5427
This commit is contained in:
@@ -252,7 +252,7 @@ class Geocode
|
|||||||
$aCountries[] = strtolower($sCountryCode);
|
$aCountries[] = strtolower($sCountryCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isset($aCountryCodes))
|
if (isset($aCountries))
|
||||||
$this->aCountryCodes = $aCountries;
|
$this->aCountryCodes = $aCountries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -207,3 +207,11 @@ Feature: API regression tests
|
|||||||
| osm_type | osm_id | latlon
|
| osm_type | osm_id | latlon
|
||||||
| node | 257363453 | 35.8404121,128.5586643 +-100m
|
| node | 257363453 | 35.8404121,128.5586643 +-100m
|
||||||
|
|
||||||
|
Scenario: trac #5427
|
||||||
|
Given the request parameters
|
||||||
|
| countrycodes |
|
||||||
|
| DE |
|
||||||
|
When sending json search query "12345" with address
|
||||||
|
Then result addresses contain
|
||||||
|
| country_code |
|
||||||
|
| de |
|
||||||
|
|||||||
Reference in New Issue
Block a user