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

fix correct OR'ing of time statements, instead of AND

Klaus Zanders149f90e85d28
diff --git a/app/models/journable/historic_active_record_relation.rb b/app/models/journable/historic_active_record_relation.rb
index adcc7e60ef7..e10d3278834 100644
--- a/app/models/journable/historic_active_record_relation.rb
+++ b/app/models/journable/historic_active_record_relation.rb
@@ -532,7 +532,7 @@ class Journable::HistoricActiveRecordRelation < ActiveRecord::Relation
return statement if additional_conditions.blank?
- "#{statement} AND #{additional_conditions.join(' AND ')}"
+ "#{statement} AND (#{additional_conditions.join(' OR ')})"
end
class NotImplementedError < StandardError; end