diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 15:00:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-04-01 15:00:23 +0000 |
commit | a669dfbd7f9408b4d341977a6d9c79bafb11b281 (patch) | |
tree | cb0a16063f753a80e8913665f22c81001108edc5 /app/controllers | |
parent | 25ea0f34a60c3ae59ee4c123865c96213365cca5 (diff) | |
download | redmine-a669dfbd7f9408b4d341977a6d9c79bafb11b281.tar.gz redmine-a669dfbd7f9408b4d341977a6d9c79bafb11b281.zip |
Shortens filter param names.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5279 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/queries_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb index 0b798636c..e54c9befb 100644 --- a/app/controllers/queries_controller.rb +++ b/app/controllers/queries_controller.rb @@ -27,7 +27,7 @@ class QueriesController < ApplicationController @query.is_public = false unless User.current.allowed_to?(:manage_public_queries, @project) || User.current.admin? @query.column_names = nil if params[:default_columns] - @query.add_filters(params[:fields], params[:operators], params[:values]) if params[:fields] + @query.add_filters(params[:fields] || params[:f], params[:operators] || params[:op], params[:values] || params[:v]) if params[:fields] || params[:f] @query.group_by ||= params[:group_by] if request.post? && params[:confirm] && @query.save @@ -41,7 +41,7 @@ class QueriesController < ApplicationController def edit if request.post? @query.filters = {} - @query.add_filters(params[:fields], params[:operators], params[:values]) if params[:fields] + @query.add_filters(params[:fields] || params[:f], params[:operators] || params[:op], params[:values] || params[:v]) if params[:fields] || params[:f] @query.attributes = params[:query] @query.project = nil if params[:query_is_for_all] @query.is_public = false unless User.current.allowed_to?(:manage_public_queries, @project) || User.current.admin? |