mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Unable to retrieve custom fields set as "For all projects" via Projects API (#38668).
Patch by Hirokazu Onozato. git-svn-id: https://svn.redmine.org/redmine/trunk@22270 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -167,7 +167,7 @@ module ProjectsHelper
|
||||
end if include_in_api_response?('enabled_modules')
|
||||
|
||||
api.array :issue_custom_fields do
|
||||
project.issue_custom_fields.each do |custom_field|
|
||||
project.all_issue_custom_fields.each do |custom_field|
|
||||
api.custom_field(:id => custom_field.id, :name => custom_field.name)
|
||||
end
|
||||
end if include_in_api_response?('issue_custom_fields')
|
||||
|
||||
Reference in New Issue
Block a user