diff --git a/app/controllers/demands_controller.rb b/app/controllers/demands_controller.rb index 4b65272d9..6cd865188 100644 --- a/app/controllers/demands_controller.rb +++ b/app/controllers/demands_controller.rb @@ -106,7 +106,7 @@ def demand_efforts def clean_assignments_efforts @demand.item_assignments.destroy_all - @demand.demand_efforts.destroy_all + @demand.demand_efforts.where(automatic_update: true).destroy_all end def read_demand_children