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

Make expression easier to understand

Christophe Bliard9a44c6a68087
diff --git a/app/services/journals/create_service.rb b/app/services/journals/create_service.rb
index 3ad742f82f8..d5901f2be5f 100644
--- a/app/services/journals/create_service.rb
+++ b/app/services/journals/create_service.rb
@@ -612,7 +612,7 @@ module Journals
end
def within_aggregation_time?(predecessor)
- predecessor.updated_at >= Time.zone.now - Setting.journal_aggregation_time_minutes.to_i.minutes
+ predecessor.updated_at >= (Time.zone.now - Setting.journal_aggregation_time_minutes.to_i.minutes)
end
def only_one_note(predecessor, notes)