mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 22:04:07 +00:00
fix warning in keyword output of details
This commit is contained in:
@@ -177,18 +177,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($bIncludeKeywords)
|
||||
{
|
||||
headline('Name Keywords');
|
||||
foreach ($aPlaceSearchNameKeywords as $aRow) {
|
||||
_one_keyword_row($aRow['word_token'], $aRow['word_id']);
|
||||
if ($aPlaceSearchNameKeywords) {
|
||||
foreach ($aPlaceSearchNameKeywords as $aRow) {
|
||||
_one_keyword_row($aRow['word_token'], $aRow['word_id']);
|
||||
}
|
||||
}
|
||||
|
||||
headline('Address Keywords');
|
||||
foreach ($aPlaceSearchAddressKeywords as $aRow) {
|
||||
_one_keyword_row($aRow['word_token'], $aRow['word_id']);
|
||||
if ($aPlaceSearchAddressKeywords) {
|
||||
foreach ($aPlaceSearchAddressKeywords as $aRow) {
|
||||
_one_keyword_row($aRow['word_token'], $aRow['word_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,3 +41,16 @@ Feature: Object details
|
||||
| linkedplaces |
|
||||
| 1 |
|
||||
Then the result is valid json
|
||||
|
||||
Scenario Outline: HTML Details with keywords
|
||||
When sending html details query for <osmid>
|
||||
| keywords |
|
||||
| 1 |
|
||||
Then the result is valid html
|
||||
|
||||
Examples:
|
||||
| osmid |
|
||||
| W78099902 |
|
||||
| N3121929846 |
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user