diff options
author | francis <francis> | 2008-08-19 19:49:22 +0000 |
---|---|---|
committer | francis <francis> | 2008-08-19 19:49:22 +0000 |
commit | dc1c583d262bae02772edfdc9ed87e6174adbf15 (patch) | |
tree | 04bb14cfab77052ddecb59d68d3c7be799fec49e | |
parent | 9b6efdfcb2c2cf4457c290a15d2dc127b5871570 (diff) |
Fix bug which stopped front page search for abbreviated names working.
-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 e7da01417..fba593aa3 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.31 2008-08-07 00:24:51 francis Exp $ +# $Id: general_controller.rb,v 1.32 2008-08-19 19:49:22 francis Exp $ class GeneralController < ApplicationController @@ -100,7 +100,7 @@ class GeneralController < ApplicationController criteria = '%' + query + '%' @public_bodies = PublicBody.find(:all, - :conditions => ["lower(name) like lower(?) or short_name like lower(?)", criteria, criteria], + :conditions => ["lower(name) like lower(?) or lower(short_name) like lower(?)", criteria, criteria], :order => 'name', :limit=>10) return @public_bodies end |