view .svn/pristine/66/666908274eeea22bb621ad52cf638c67e7d01ffd.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
line wrap: on
line source
api.array :projects, api_meta(:total_count => @project_count, :offset => @offset, :limit => @limit) do
  @projects.each do |project|
    api.project do
      api.id          project.id
      api.name        project.name
      api.identifier  project.identifier
      api.description project.description
      api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
      api.status      project.status

      render_api_custom_values project.visible_custom_field_values, api

      api.created_on  project.created_on
      api.updated_on  project.updated_on
    end
  end
end