diff options
author | Go MAEDA <maeda@farend.jp> | 2023-06-30 09:20:09 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-06-30 09:20:09 +0000 |
commit | 66f16ff3485bcf6f65f57f971e086dbd6066b4a4 (patch) | |
tree | ec0c63ce19dc3e413048a60694d82649e5ce0312 /app/helpers | |
parent | 945a82b5c0aad6bd6af656865015277d3e0e612b (diff) | |
download | redmine-66f16ff3485bcf6f65f57f971e086dbd6066b4a4.tar.gz redmine-66f16ff3485bcf6f65f57f971e086dbd6066b4a4.zip |
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
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 6a995fe63..d4f7339a0 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -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') |