mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
Don't propose projects without trackers when editing an issue (#20463).
git-svn-id: http://svn.redmine.org/redmine/trunk@14613 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1331,6 +1331,12 @@ class IssueTest < ActiveSupport::TestCase
|
||||
assert_not_include Project.find(2), Issue.allowed_target_projects(User.find(2))
|
||||
end
|
||||
|
||||
def test_allowed_target_projects_should_not_include_projects_without_trackers
|
||||
project = Project.generate!(:tracker_ids => [])
|
||||
assert project.trackers.empty?
|
||||
assert_not_include project, Issue.allowed_target_projects(User.find(1))
|
||||
end
|
||||
|
||||
def test_move_to_another_project_with_same_category
|
||||
issue = Issue.find(1)
|
||||
issue.project = Project.find(2)
|
||||
|
||||
Reference in New Issue
Block a user