Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

ensure not trying to reschedule phases that have non positive duration

Ivan Kuchine16c0de97cd4
diff --git a/app/services/project_life_cycle_steps/update_service.rb b/app/services/project_life_cycle_steps/update_service.rb
index e44b07c08b1..4f8ad877edc 100644
--- a/app/services/project_life_cycle_steps/update_service.rb
+++ b/app/services/project_life_cycle_steps/update_service.rb
@@ -63,7 +63,7 @@ module ProjectLifeCycleSteps
following_phases.each do |phase|
next unless phase.range_set?
- next unless phase.duration # not updated using service that sets duration
+ next unless phase.duration&.positive? # not updated using service that sets duration
date_range = calculate_date_range(from, duration: phase.duration)
next unless date_range