aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-14 22:06:36 +0100
committerJochen Topf <jochen@topf.org>2013-01-14 22:06:36 +0100
commit163d8e62433eb6d0d14910525d4900aab57de567 (patch)
treea4e9c1bf8f73c0a77437f5ffa3b8195eed1f158f
parente1030956905cae34c281281347555ad3eebae5ab (diff)
downloadtaginfo-163d8e62433eb6d0d14910525d4900aab57de567.tar
taginfo-163d8e62433eb6d0d14910525d4900aab57de567.tar.gz
Fix language comparison table
-rw-r--r--web/lib/api/v4/keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/api/v4/keys.rb b/web/lib/api/v4/keys.rb
index 3232b95..d715656 100644
--- a/web/lib/api/v4/keys.rb
+++ b/web/lib/api/v4/keys.rb
@@ -155,7 +155,7 @@ class Taginfo < Sinatra::Base
condition_if("key LIKE '%' || ? || '%'", params[:query]).
get_first_value().to_i
- res = @db.select('SELECT key, langs FROM wiki.wikipages_keys').
+ res = @db.select("SELECT key, coalesce(langs, '') AS langs FROM wiki.wikipages_keys").
condition_if("key LIKE '%' || ? || '%'", params[:query]).
order_by(@ap.sortname, @ap.sortorder){ |o|
o.key