aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-11-17 17:12:10 +0000
committerfrancis <francis>2008-11-17 17:12:10 +0000
commit7b81861c483c93ddf22df1b4d28c1f6b9381eec9 (patch)
treeaa980514275dff2e2250e7774d0b716812b80410 /app/controllers/general_controller.rb
parent85b33fcd27fa9fe6f7d94b1974ac4983d7f4d968 (diff)
Make just search submit from centre of front page work.
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 8dd5e2384..7c3defa0d 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.43 2008-09-08 11:33:10 francis Exp $
+# $Id: general_controller.rb,v 1.44 2008-11-17 17:12:10 francis Exp $
class GeneralController < ApplicationController
@@ -34,6 +34,7 @@ class GeneralController < ApplicationController
@bodies = params[:bodies]
if @query.nil? || @query.empty?
@query = nil
+ @page = 1
render :action => "search"
else
if (@bodies == '1') && (@sortby.nil? || @sortby.empty?)