diff options
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 141193c2d..c01683c03 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: general_controller.rb,v 1.29 2008-07-28 17:59:40 francis Exp $ +# $Id: general_controller.rb,v 1.30 2008-07-28 18:04:38 francis Exp $ class GeneralController < ApplicationController @@ -99,7 +99,7 @@ class GeneralController < ApplicationController criteria = '%' + query + '%' @public_bodies = PublicBody.find(:all, - :conditions => ["lower(name) = lower(?) or short_name = lower(?)", criteria, criteria], + :conditions => ["lower(name) like lower(?) or short_name like lower(?)", criteria, criteria], :order => 'name', :limit=>10) return @public_bodies end |