aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-09-01 13:53:00 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-09-01 13:53:00 +0100
commitfc70bdf0099613ddc2112538bf8c7614fc82431a (patch)
treeaddd19c9e143c8d358f3d18fccff821307a10b27 /app/controllers/general_controller.rb
parent21495a7361c275040d22bb88a70186253d20853a (diff)
Ensure we show the "request" search view by default
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 73c8407fd..6b4683881 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -142,7 +142,9 @@ class GeneralController < ApplicationController
@sort_postfix = combined.pop
@sortby = @sort_postfix
end
-
+ if !params[:view].nil?
+ combined += [params[:view]]
+ end
if combined.size > 0 && (['bodies', 'requests', 'users', 'all'].include?(combined[-1]))
@variety_postfix = combined.pop
case @variety_postfix