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
This commit is contained in:
1 parent
8524d505c5
commit
0e19aa4362
8 files changed
+45
-30
No files matched your search
@@ -7,11 +7,7 @@ api.user do
|
||||
api.created_on @user.created_on
|
||||
api.last_login_on @user.last_login_on
|
||||
|
||||
api.array :custom_fields do
|
||||
@user.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 @user.visible_custom_field_values.empty?
|
||||
render_api_custom_values @user.visible_custom_field_values, api
|
||||
|
||||
api.array :memberships do
|
||||
@memberships.each do |membership|
|
||||
|
||||
Reference in new issue
Block a user