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

Remove debug case

Klaus Zanders812132ee1d9d
diff --git a/lib/open_project/journal_formatter/cause.rb b/lib/open_project/journal_formatter/cause.rb
index 0a6c528ade4..ab764c67e90 100644
--- a/lib/open_project/journal_formatter/cause.rb
+++ b/lib/open_project/journal_formatter/cause.rb
@@ -57,7 +57,7 @@ class OpenProject::JournalFormatter::Cause < JournalFormatter::Base
end
def related_work_package_changed_message(cause)
- related_work_package = nil # WorkPackage.includes(:project).visible(User.current).find_by(id: cause['work_package_id'])
+ related_work_package = WorkPackage.includes(:project).visible(User.current).find_by(id: cause['work_package_id'])
if related_work_package
I18n.t(