From a3ea266e91f4bb92e3745dfcb6c49ae940e25626 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 16 May 2018 15:46:47 +0200 Subject: [PATCH] Add order column to popular --- OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java index 5c3a8148a7..fe47082723 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelDbHelper.java @@ -447,9 +447,10 @@ public class TravelDbHelper { + "FROM travel_articles a WHERE is_part_of = ? and lang = ? "); params.add(title); params.add(lang); - headers.add(title); + if (parts != null && parts.length > 0) { headers.addAll(Arrays.asList(parts)); + headers.add(title); query.append("UNION SELECT a.trip_id, a.title, a.lang, a.is_part_of " + "FROM travel_articles a WHERE title = ? and lang = ? "); params.add(parts[0]);