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

don`t bail if data is already gone

ulferts6fe0d2752feb
diff --git a/app/models/journal.rb b/app/models/journal.rb
index bc40008b193..c2a1362b181 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -112,7 +112,7 @@ class Journal < ApplicationRecord
private
def destroy_data
- data.destroy
+ data&.destroy
end
def predecessor