diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-07 15:38:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-07 15:38:51 +0000 |
commit | 63866407f123f0f991c164d5e715e3fbbcdf53df (patch) | |
tree | 644c74c84a0174453e0aa5a71459f163b05289e4 /app/models | |
parent | 2ca9bb3cca0b43e4a3ee8da12d87baf957acbeab (diff) | |
download | redmine-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/models')
-rw-r--r-- | app/models/query.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 638cc8226..7c246f9ae 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -258,8 +258,10 @@ class Query < ActiveRecord::Base # Add multiple filters using +add_filter+ def add_filters(fields, operators, values) - fields.each do |field| - add_filter(field, operators[field], values[field]) + if fields.is_a?(Array) && operators.is_a?(Hash) && values.is_a?(Hash) + fields.each do |field| + add_filter(field, operators[field], values[field]) + end end end |