Make done_ratio disappear if disabled

pull/2794/head
Alexander Bach 10 years ago
parent 06479bd18d
commit 99dbca1601
  1. 3
      lib/api/v3/work_packages/form/work_package_payload_representer.rb

@ -77,7 +77,8 @@ module API
property :done_ratio,
as: :percentageDone,
getter: -> (*) { done_ratio if Setting.work_package_done_ratio != 'disabled' },
render_nil: false
render_nil: false,
if: -> (*) { Setting.work_package_done_ratio != 'disabled' }
property :estimated_hours,
as: :estimatedTime,

Loading…
Cancel
Save