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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove duplicate array casting from HistoricActiveRecordRelation#timestamp
Dombi Attiladdcee5312f79
diff --git a/app/models/journable/historic_active_record_relation.rb b/app/models/journable/historic_active_record_relation.rbindex 7db4d313d74..4eaa4ee9317 100644--- a/app/models/journable/historic_active_record_relation.rb+++ b/app/models/journable/historic_active_record_relation.rb@@ -241,7 +241,7 @@ class Journable::HistoricActiveRecordRelation < ActiveRecord::Relationdef add_timestamp_condition(relation)relation.joins_values = [journals_join_statement] + relation.joins_values- timestamp_condition = Array(timestamp).map do |t|+ timestamp_condition = timestamp.map do |t|Journal.where(journable_type: model.name).at_timestamp(t)end.reduce(&:or)