From c3646b50d0f8e4c88fdbec923386f9ce6486fc59 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Tue, 31 May 2016 11:33:48 +0200 Subject: [PATCH] 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 --- lib/open_project/costs/engine.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/open_project/costs/engine.rb b/lib/open_project/costs/engine.rb index 208be8486e..5ecad7cfaf 100644 --- a/lib/open_project/costs/engine.rb +++ b/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,