diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 2e0ed6fb..0d7ef716 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -273,7 +273,7 @@ class IssuesController < ApplicationController return end @available_statuses = Workflow.available_statuses(@project) - @custom_fields = @project.issue_custom_fields.select {|f| f.field_format == 'list'} + @custom_fields = @project.all_issue_custom_fields.select {|f| f.field_format == 'list'} end def move diff --git a/app/views/issues/bulk_edit.rhtml b/app/views/issues/bulk_edit.rhtml index b298c3c4..d8249a8a 100644 --- a/app/views/issues/bulk_edit.rhtml +++ b/app/views/issues/bulk_edit.rhtml @@ -46,7 +46,7 @@
<% @custom_fields.each do |custom_field| %> -+
<% end %> @@ -60,5 +60,5 @@ -
<%= submit_tag l(:button_submit) %> +
<%= submit_tag l(:button_submit) %>
<% end %> diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index e73e24a0..bf5ffb2b 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -946,6 +946,8 @@ class IssuesControllerTest < ActionController::TestCase get :bulk_edit, :ids => [1, 2] assert_response :success assert_template 'bulk_edit' + # System wide custom field + assert_tag :select, :attributes => {:name => 'custom_field_values[1]'} end def test_bulk_edit