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

[38092] Add fallback reason in mailer

Oliver Günther123fc5758c94
diff --git a/app/views/digest_mailer/work_packages.html.erb b/app/views/digest_mailer/work_packages.html.erb
index 63b9c35d35a..e675772e160 100644
--- a/app/views/digest_mailer/work_packages.html.erb
+++ b/app/views/digest_mailer/work_packages.html.erb
@@ -19,7 +19,9 @@
<%= digest_notification_timestamp_text(notification) %>
</td>
<td style="text-align: right">
- <%= I18n.t(:"mail.digests.work_packages.reason.#{notification.reason_mail_digest}") %>
+ <%= I18n.t(
+ :"mail.digests.work_packages.reason.#{notification.reason_mail_digest || :unknown}",
+ default: '-') %>
</td>
<td width="20px"></td>
</tr>
@@ -53,4 +55,4 @@
</section>
<% end %>
</section>
-<% end %>
\ No newline at end of file
+<% end %>