Allows user to clear dates and text fields when bulk editing issues (#2199).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12192 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-09-30 19:27:00 +00:00
parent 285baaff94
commit e35640f3e8
3 changed files with 39 additions and 3 deletions

View File

@@ -3287,6 +3287,12 @@ class IssuesControllerTest < ActionController::TestCase
end
end
def test_bulk_edit_should_propose_to_clear_text_custom_fields
@request.session[:user_id] = 2
get :bulk_edit, :ids => [1, 3]
assert_select 'input[name=?][value=?]', 'issue[custom_field_values][2]', '__none__'
end
def test_bulk_edit_should_only_propose_statuses_allowed_for_all_issues
WorkflowTransition.delete_all
WorkflowTransition.create!(:role_id => 1, :tracker_id => 1,