Adds custom field in TimeEntry API responses (#10131).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8748 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-01 21:15:13 +00:00
parent 2808adf99f
commit b13f85e456
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ api.array :time_entries, api_meta(:total_count => @entry_count, :offset => @offs
api.spent_on time_entry.spent_on
api.created_on time_entry.created_on
api.updated_on time_entry.updated_on
render_api_custom_values time_entry.custom_field_values, api
end
end
end

View File

@ -9,4 +9,6 @@ api.time_entry do
api.spent_on @time_entry.spent_on
api.created_on @time_entry.created_on
api.updated_on @time_entry.updated_on
render_api_custom_values @time_entry.custom_field_values, api
end