diff options
author | Go MAEDA <maeda@farend.jp> | 2023-05-11 02:08:41 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-05-11 02:08:41 +0000 |
commit | 2caf5eaf973f82d3a9177f63378a642aec8b7d3b (patch) | |
tree | fce2bf5a112d3850ad4b6145aa02ae435431823e /app/models/issue_query.rb | |
parent | 8e170b1ec2f29666aea0166c9bad5575cf5eacce (diff) | |
download | redmine-2caf5eaf973f82d3a9177f63378a642aec8b7d3b.tar.gz redmine-2caf5eaf973f82d3a9177f63378a642aec8b7d3b.zip |
New issues filter operators "has been", "has never been", and "changed from" (#38527).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22240 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r-- | app/models/issue_query.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index e573f8782..a0420c994 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -155,11 +155,11 @@ class IssueQuery < Query ) if project.nil? add_available_filter( "tracker_id", - :type => :list, :values => trackers.collect{|s| [s.name, s.id.to_s]} + :type => :list_with_history, :values => trackers.collect{|s| [s.name, s.id.to_s]} ) add_available_filter( "priority_id", - :type => :list, :values => IssuePriority.all.collect{|s| [s.name, s.id.to_s]} + :type => :list_with_history, :values => IssuePriority.all.collect{|s| [s.name, s.id.to_s]} ) add_available_filter( "author_id", @@ -167,7 +167,7 @@ class IssueQuery < Query ) add_available_filter( "assigned_to_id", - :type => :list_optional, :values => lambda {assigned_to_values} + :type => :list_optional_with_history, :values => lambda {assigned_to_values} ) add_available_filter( "member_of_group", @@ -179,7 +179,7 @@ class IssueQuery < Query ) add_available_filter( "fixed_version_id", - :type => :list_optional, :values => lambda {fixed_version_values} + :type => :list_optional_with_history, :values => lambda {fixed_version_values} ) add_available_filter( "fixed_version.due_date", @@ -194,7 +194,7 @@ class IssueQuery < Query ) add_available_filter( "category_id", - :type => :list_optional, + :type => :list_optional_with_history, :values => lambda {project.issue_categories.collect{|s| [s.name, s.id.to_s]}} ) if project add_available_filter "subject", :type => :text |