summaryrefslogtreecommitdiffstats
path: root/app/helpers/queries_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-01 15:00:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-01 15:00:23 +0000
commita669dfbd7f9408b4d341977a6d9c79bafb11b281 (patch)
treecb0a16063f753a80e8913665f22c81001108edc5 /app/helpers/queries_helper.rb
parent25ea0f34a60c3ae59ee4c123865c96213365cca5 (diff)
downloadredmine-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/helpers/queries_helper.rb')
-rw-r--r--app/helpers/queries_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index e9ab3769f..b6dc697e3 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -1,5 +1,5 @@
-# redMine - project management software
-# Copyright (C) 2006-2007 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -78,9 +78,9 @@ module QueriesHelper
# Give it a name, required to be valid
@query = Query.new(:name => "_")
@query.project = @project
- if params[:fields]
+ if params[:fields] || params[:f]
@query.filters = {}
- @query.add_filters(params[:fields], params[:operators], params[:values])
+ @query.add_filters(params[:fields] || params[:f], params[:operators] || params[:op], params[:values] || params[:v])
else
@query.available_filters.keys.each do |field|
@query.add_short_filter(field, params[field]) if params[field]