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

Respect feature flag in query timestamp

Oliver Günther046c625b60a7
diff --git a/app/models/query/timestamps.rb b/app/models/query/timestamps.rb
index 294b057630e..d7210e959d5 100644
--- a/app/models/query/timestamps.rb
+++ b/app/models/query/timestamps.rb
@@ -42,6 +42,8 @@ module Query::Timestamps
# call `timestamp.to_time`.
#
def timestamps
+ return [Timestamp.now] unless OpenProject::FeatureDecisions.show_changes_active?
+
timestamps = super.collect do |timestamp_string|
Timestamp.new(timestamp_string)
end