aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/public_body_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-10-07 10:13:37 +0100
committerLouise Crow <louise.crow@gmail.com>2013-10-07 10:13:37 +0100
commit86f1fde1c2ace3e67185368033b3328ad8be83c2 (patch)
treece21fc2ab02f28498f55f946aa3a384af234e506 /app/controllers/public_body_controller.rb
parentfeae2718b2883fec75a20295c2cddc52f7fa301c (diff)
parent6a857d9a42629da7c430ddf6c865cb7eb73a8901 (diff)
Merge remote-tracking branch 'origin/first-letter-unicode-fixes' into rails-3-develop
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r--app/controllers/public_body_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb
index 02f0ceb19..1f7032eed 100644
--- a/app/controllers/public_body_controller.rb
+++ b/app/controllers/public_body_controller.rb
@@ -113,8 +113,8 @@ class PublicBodyController < ApplicationController
elsif @tag == 'other'
category_list = PublicBodyCategories::get().tags().map{|c| "'"+c+"'"}.join(",")
where_condition += base_tag_condition + " AND has_tag_string_tags.name in (#{category_list})) = 0"
- elsif @tag.size == 1
- @tag.upcase!
+ elsif @tag.scan(/./mu).size == 1
+ @tag = Unicode.upcase @tag
# The first letter queries have to be done on
# translations, so just indicate to add that later:
first_letter = true