summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-21 09:26:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-03-21 09:26:18 +0000
commit1448f1731f263ac83370282c48d865f518139d09 (patch)
treee54bd318ef3c0b0b19d79d92a1dabf7584723ae2 /test
parentea099fb771a85c1350b92ed05aac9325370e7b5f (diff)
downloadredmine-1448f1731f263ac83370282c48d865f518139d09.tar.gz
redmine-1448f1731f263ac83370282c48d865f518139d09.zip
Fixed that the bulk edit form shows additional custom fields (#19163).
git-svn-id: http://svn.redmine.org/redmine/trunk@14151 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index dc3bd4861..cab533138 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -3536,6 +3536,17 @@ class IssuesControllerTest < ActionController::TestCase
end
end
+ def test_bulk_edit_should_only_propose_issues_trackers_custom_fields
+ IssueCustomField.delete_all
+ field = IssueCustomField.generate!(:tracker_ids => [1], :is_for_all => true)
+ IssueCustomField.generate!(:tracker_ids => [2], :is_for_all => true)
+ @request.session[:user_id] = 2
+
+ issue_ids = Issue.where(:project_id => 1, :tracker_id => 1).limit(2).ids
+ get :bulk_edit, :ids => issue_ids
+ assert_equal [field], assigns(:custom_fields)
+ end
+
def test_bulk_update
@request.session[:user_id] = 2
# update issues priority