mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 05:35:13 +03:00
check for correct array for country codes
fixes trac ticket 5427
This commit is contained in:
parent
8a2e401025
commit
42d473968f
@ -252,7 +252,7 @@ class Geocode
|
||||
$aCountries[] = strtolower($sCountryCode);
|
||||
}
|
||||
}
|
||||
if (isset($aCountryCodes))
|
||||
if (isset($aCountries))
|
||||
$this->aCountryCodes = $aCountries;
|
||||
}
|
||||
|
||||
|
@ -207,3 +207,11 @@ Feature: API regression tests
|
||||
| osm_type | osm_id | latlon
|
||||
| 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 |
|
||||
|
Loading…
Reference in New Issue
Block a user