summaryrefslogtreecommitdiffstats
path: root/app/helpers/queries_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-07 15:38:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-07 15:38:51 +0000
commit63866407f123f0f991c164d5e715e3fbbcdf53df (patch)
tree644c74c84a0174453e0aa5a71459f163b05289e4 /app/helpers/queries_helper.rb
parent2ca9bb3cca0b43e4a3ee8da12d87baf957acbeab (diff)
downloadredmine-63866407f123f0f991c164d5e715e3fbbcdf53df.tar.gz
redmine-63866407f123f0f991c164d5e715e3fbbcdf53df.zip
Fixed: unchecking status filter on the issue list has no effect (#6844).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4387 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r--app/helpers/queries_helper.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 26be63693..e9ab3769f 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -78,10 +78,9 @@ module QueriesHelper
# Give it a name, required to be valid
@query = Query.new(:name => "_")
@query.project = @project
- if params[:fields] and params[:fields].is_a? Array
- params[:fields].each do |field|
- @query.add_filter(field, params[:operators][field], params[:values][field])
- end
+ if params[:fields]
+ @query.filters = {}
+ @query.add_filters(params[:fields], params[:operators], params[:values])
else
@query.available_filters.keys.each do |field|
@query.add_short_filter(field, params[field]) if params[field]