mirror of
https://github.com/redmine/redmine.git
synced 2026-05-05 14:27:01 +02:00
Filter by issue id (#4806).
A shortcut is added to the context menu to filter the selected issues. git-svn-id: http://svn.redmine.org/redmine/trunk@15371 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -235,6 +235,14 @@ class QueryTest < ActiveSupport::TestCase
|
||||
assert_equal 2, issues.first.id
|
||||
end
|
||||
|
||||
def test_operator_is_on_integer_should_accept_comma_separated_values
|
||||
query = IssueQuery.new(:name => '_')
|
||||
query.add_filter("issue_id", '=', ['1,3'])
|
||||
issues = find_issues_with_query(query)
|
||||
assert_equal 2, issues.size
|
||||
assert_equal [1,3], issues.map(&:id).sort
|
||||
end
|
||||
|
||||
def test_operator_is_on_integer_custom_field
|
||||
f = IssueCustomField.create!(:name => 'filter', :field_format => 'int', :is_for_all => true, :is_filter => true, :trackers => Tracker.all)
|
||||
CustomValue.create!(:custom_field => f, :customized => Issue.find(1), :value => '7')
|
||||
|
||||
Reference in New Issue
Block a user