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

avoid using the work_package`s timestamp for the journals

ulfertsdf3f7bdc7e60
diff --git a/app/models/journable/timestamps.rb b/app/models/journable/timestamps.rb
index 7aeb3f89007..56c03174af2 100644
--- a/app/models/journable/timestamps.rb
+++ b/app/models/journable/timestamps.rb
@@ -122,6 +122,6 @@ module Journable::Timestamps
def rollback!
raise ActiveRecord::RecordNotSaved, "This is no historic data. You can only revert to historic data." unless historic?
- self.class.find(id).update! attributes.except("id", "timestamp")
+ self.class.find(id).update! attributes.except("id", "timestamp", "created_at", "updated_at")
end
end