Fixed: the default status is lost when reordering issue statuses (#1955).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1911 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -46,4 +46,11 @@ class IssueStatusTest < Test::Unit::TestCase
|
||||
assert_equal status, IssueStatus.default
|
||||
assert !IssueStatus.find(1).is_default
|
||||
end
|
||||
|
||||
def test_reorder_should_not_clear_default_status
|
||||
status = IssueStatus.default
|
||||
status.move_to_bottom
|
||||
status.reload
|
||||
assert status.is_default?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user