remove custom_spent time definition in schema

As long as we do not have a user specific schema. There is no difference between the spent_time as defined by the core and spent_time as defined by costs
pull/6827/head
Jens Ulferts 9 years ago
parent 295143360b
commit c3646b50d0
  1. 6
      lib/open_project/costs/engine.rb

@ -217,12 +217,6 @@ module OpenProject::Costs
end
extend_api_response(:v3, :work_packages, :schema, :work_package_schema) do
schema :spent_time,
type: 'Duration',
writable: false,
show_if: -> (*) { represented.project && represented.project.costs_enabled? },
required: false
# N.B. in the long term we should have a type like "Currency", but that requires a proper
# format and not a string like "10 EUR"
schema :overall_costs,

Loading…
Cancel
Save