Project

General

Profile

Feature #14717 ยป Spent_hours_API_Patch.diff

David Spackman, 2013-08-20 02:57

View differences:

app/views/issues/index.api.rsb (working copy)
18 18
      api.due_date    issue.due_date
19 19
      api.done_ratio  issue.done_ratio
20 20
      api.estimated_hours issue.estimated_hours
21
      api.spent_hours issue.spent_hours	  
22
      api.total_spent_hours issue.total_spent_hours
21 23

  
22 24
      render_api_custom_values issue.visible_custom_field_values, api
23 25

  
app/views/issues/show.api.rsb (working copy)
17 17
  api.done_ratio @issue.done_ratio
18 18
  api.estimated_hours @issue.estimated_hours
19 19
  api.spent_hours(@issue.spent_hours) if User.current.allowed_to?(:view_time_entries, @project)
20
  api.total_spent_hours(@issue.total_spent_hours) if User.current.allowed_to?(:view_time_entries, @project)
20 21

  
21 22
  render_api_custom_values @issue.visible_custom_field_values, api
22 23

  
    (1-1/1)