summaryrefslogtreecommitdiffstats
path: root/app/views/custom_fields
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-04-26 07:56:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-04-26 07:56:00 +0000
commit9fdd0862f74cb4b187fe7fe1422746702a4cb953 (patch)
tree8a7d2948ec7c3406c04bcbf59c39f80a1bee4931 /app/views/custom_fields
parentddd6ac8cd4d0613121a2ed79d3aca794ce5e59b0 (diff)
downloadredmine-9fdd0862f74cb4b187fe7fe1422746702a4cb953.tar.gz
redmine-9fdd0862f74cb4b187fe7fe1422746702a4cb953.zip
Missing type=array attributes in custom fields API (#16739).
git-svn-id: http://svn.redmine.org/redmine/trunk@13109 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields')
-rw-r--r--app/views/custom_fields/index.api.rsb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/custom_fields/index.api.rsb b/app/views/custom_fields/index.api.rsb
index 902edff16..77c9cf3b3 100644
--- a/app/views/custom_fields/index.api.rsb
+++ b/app/views/custom_fields/index.api.rsb
@@ -27,12 +27,12 @@ api.array :custom_fields do
end
if field.is_a?(IssueCustomField)
- api.trackers do
+ api.array :trackers do
field.trackers.each do |tracker|
api.tracker :id => tracker.id, :name => tracker.name
end
end
- api.roles do
+ api.array :roles do
field.roles.each do |role|
api.role :id => role.id, :name => role.name
end