Skip to content

Commit

Permalink
Merge pull request #522 from City-of-Helsinki/UHF-X-quickfixtodesc
Browse files Browse the repository at this point in the history
Uhf x quickfixtodesc
  • Loading branch information
sundflux authored Jun 28, 2024
2 parents da64e27 + af99f2c commit bfdcf80
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,17 @@ private function getSearchDescriptionTaxonomies($obj): string {
$description = '';

// Search term first.
array_unshift($terms, $query);
$description .= $query;

// All these can be printed out with , separator.
if (!empty($areaFiltersTranslated)) {
$allTerms = array_merge($terms, $areaFiltersTranslated);
}

if (!empty($allTerms)) {
if (!empty($description)) {
$description .= ', ';
}
$description .= implode(', ', array_filter($allTerms));
}

Expand Down

0 comments on commit bfdcf80

Please sign in to comment.