annotate .svn/pristine/ad/ade99a9bf4e238360d49494f7724d4d3ffbb612e.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents dffacf8a6908
children
rev   line source
Chris@1517 1 api.project do
Chris@1517 2 api.id @project.id
Chris@1517 3 api.name @project.name
Chris@1517 4 api.identifier @project.identifier
Chris@1517 5 api.description @project.description
Chris@1517 6 api.homepage @project.homepage
Chris@1517 7 api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
Chris@1517 8 api.status @project.status
Chris@1517 9
Chris@1517 10 render_api_custom_values @project.visible_custom_field_values, api
Chris@1517 11
Chris@1517 12 api.created_on @project.created_on
Chris@1517 13 api.updated_on @project.updated_on
Chris@1517 14
Chris@1517 15 api.array :trackers do
Chris@1517 16 @project.trackers.each do |tracker|
Chris@1517 17 api.tracker(:id => tracker.id, :name => tracker.name)
Chris@1517 18 end
Chris@1517 19 end if include_in_api_response?('trackers')
Chris@1517 20
Chris@1517 21 api.array :issue_categories do
Chris@1517 22 @project.issue_categories.each do |category|
Chris@1517 23 api.issue_category(:id => category.id, :name => category.name)
Chris@1517 24 end
Chris@1517 25 end if include_in_api_response?('issue_categories')
Chris@1517 26 end