Project

General

Profile

Feature #26237 » versions_api_wiki_page_title.diff

Patch for Version API - Severin Schols, 2017-12-19 02:25

View differences:

app/views/versions/index.api.rsb (working copy)
4 4
      api.id version.id
5 5
      api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil?
6 6

  
7
      api.name        version.name
8
      api.description version.description
9
      api.status      version.status
10
      api.due_date    version.effective_date
11
      api.sharing     version.sharing
7
      api.name            version.name
8
      api.description     version.description
9
      api.status          version.status
10
      api.due_date        version.effective_date
11
      api.sharing         version.sharing
12
      api.wiki_page_title version.wiki_page_title
12 13

  
13 14
      render_api_custom_values version.custom_field_values, api
14 15

  
app/views/versions/show.api.rsb (working copy)
2 2
  api.id @version.id
3 3
  api.project(:id => @version.project_id, :name => @version.project.name) unless @version.project.nil?
4 4

  
5
  api.name        @version.name
6
  api.description @version.description
7
  api.status      @version.status
8
  api.due_date    @version.effective_date
9
  api.sharing     @version.sharing
5
  api.name            @version.name
6
  api.description     @version.description
7
  api.status          @version.status
8
  api.due_date        @version.effective_date
9
  api.sharing         @version.sharing
10
  api.wiki_page_title @version.wiki_page_title
10 11

  
11 12
  render_api_custom_values @version.custom_field_values, api
12 13

  
(1-1/3)