diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-03-10 12:21:40 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-03-10 12:21:40 +0000 |
commit | a731f9ff933223426404b113938ee185e0911075 (patch) | |
tree | 2c51c779eedd2179d372dfcc2d5d374ff9cf8629 /app/controllers/public_body_controller.rb | |
parent | 4068c20d3218165fd9db085c2fa0465db799ee8f (diff) |
fix bad merges from rebase with master
Diffstat (limited to 'app/controllers/public_body_controller.rb')
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index 439e9d579..cf64046ea 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -88,7 +88,7 @@ class PublicBodyController < ApplicationController and has_tag_string_tags.name in (' + category_list + ')) = 0', @locale] elsif @tag.size == 1 @tag.upcase! - conditions = [locale_condition + ' AND first_letter = ?', @locale, @tag] + conditions = [locale_condition + ' AND public_body_translations.first_letter = ?', @locale, @tag] elsif @tag.include?(":") name, value = HasTagString::HasTagStringTag.split_tag_into_name_value(@tag) conditions = [locale_condition + ' AND (select count(*) from has_tag_string_tags where has_tag_string_tags.model_id = public_bodies.id |