diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-24 10:03:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-24 10:03:13 +0000 |
commit | 5c97a83a705f9dd7b7e8dd4470a2bc12fa5b22c1 (patch) | |
tree | df9ac134224e4c43cdec2bd33d8801885c5d242b /app/controllers/admin_controller.rb | |
parent | 7776b5b6659ee213c031fd1ed3f73d503af6541e (diff) | |
download | redmine-5c97a83a705f9dd7b7e8dd4470a2bc12fa5b22c1.tar.gz redmine-5c97a83a705f9dd7b7e8dd4470a2bc12fa5b22c1.zip |
Validates sort_key and sort_order params (#2378).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2171 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index d3afeeea1..be260b419 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -27,7 +27,7 @@ class AdminController < ApplicationController def projects sort_init 'name', 'asc' - sort_update + sort_update %w(name is_public created_on) @status = params[:status] ? params[:status].to_i : 1 c = ARCondition.new(@status == 0 ? "status <> 0" : ["status = ?", @status]) |