]> source.dussan.org Git - redmine.git/commitdiff
Fixed that the bulk edit form shows additional custom fields (#19163).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 21 Mar 2015 09:27:09 +0000 (09:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 21 Mar 2015 09:27:09 +0000 (09:27 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14152 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index c314b7809e4f5b9205b22c13bf8bf9c7d9736532..48608f7a704dcb7c20cdd6f07a1cda3e91b50fe3 100644 (file)
@@ -229,7 +229,7 @@ class IssuesController < ApplicationController
     else
       @available_statuses = @issues.map(&:new_statuses_allowed_to).reduce(:&)
     end
-    @custom_fields = @issue..map{|p|p.all_issue_custom_fields.visible}.reduce(:&)
+    @custom_fields = @issues.map{|i|i.editable_custom_fields}.reduce(:&)
     @assignables = target_projects.map(&:assignable_users).reduce(:&)
     @trackers = target_projects.map(&:trackers).reduce(:&)
     @versions = target_projects.map {|p| p.shared_versions.open}.reduce(:&)