diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-10 10:12:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-10 10:12:19 +0000 |
commit | 0e19aa4362a0524d900044fc9dc69e177337eca0 (patch) | |
tree | d5b9120bfab84d78beb68cb38ab6d2b8a462c3df /app/views/projects/index.api.rsb | |
parent | 8524d505c5c092ead4f6be1fedfc38311b3c7b91 (diff) | |
download | redmine-0e19aa4362a0524d900044fc9dc69e177337eca0.tar.gz redmine-0e19aa4362a0524d900044fc9dc69e177337eca0.zip |
Fixed: error when serializing back objects with custom fields using ActiveResource (#6403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4480 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/index.api.rsb')
-rw-r--r-- | app/views/projects/index.api.rsb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/views/projects/index.api.rsb b/app/views/projects/index.api.rsb index e65477a23..4ffee934f 100644 --- a/app/views/projects/index.api.rsb +++ b/app/views/projects/index.api.rsb @@ -6,11 +6,9 @@ api.array :projects do api.identifier project.identifier api.description project.description api.parent(:id => project.parent_id, :name => project.parent.name) unless project.parent.nil? - api.array :custom_fields do - project.visible_custom_field_values.each do |custom_value| - api.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name - end - end unless project.custom_field_values.empty? + + render_api_custom_values project.visible_custom_field_values, api + api.created_on project.created_on api.updated_on project.updated_on end |