From 7a31a3d106a2ee0133ece09dfa6a29a0f2894b57 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Mon, 9 Apr 2018 14:15:36 +0200 Subject: [PATCH 1/1] remove rank_search_label field --- lib/template/details-json.php | 1 - website/details.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/template/details-json.php b/lib/template/details-json.php index 03f285ec..3cf233d4 100644 --- a/lib/template/details-json.php +++ b/lib/template/details-json.php @@ -30,7 +30,6 @@ $aPlaceDetails['icon'] = CONST_Website_BaseURL.'images/mapicons/'.$aPointDetails $aPlaceDetails['rank_address'] = (int) $aPointDetails['rank_address']; $aPlaceDetails['rank_search'] = (int) $aPointDetails['rank_search']; -$aPlaceDetails['rank_search_label'] = $aPointDetails['rank_search_label']; $aPlaceDetails['isarea'] = ($aPointDetails['isarea'] == 't'); $aPlaceDetails['lat'] = (float) $aPointDetails['lat']; diff --git a/website/details.php b/website/details.php index bc98d400..08d1d2d8 100755 --- a/website/details.php +++ b/website/details.php @@ -106,7 +106,7 @@ $sSQL .= ' ROUND(EXTRACT(epoch FROM indexed_date)) AS indexed_epoch,'; $sSQL .= ' parent_place_id, '; $sSQL .= ' rank_address, '; $sSQL .= ' rank_search, '; -$sSQL .= ' get_searchrank_label(rank_search) AS rank_search_label,'; +$sSQL .= ' get_searchrank_label(rank_search) AS rank_search_label,'; // only used in HTML output $sSQL .= " get_name_by_language(name,$sLanguagePrefArraySQL) AS localname, "; $sSQL .= " ST_GeometryType(geometry) in ('ST_Polygon','ST_MultiPolygon') AS isarea, "; $sSQL .= ' ST_y(centroid) AS lat, '; -- 2.39.5