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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Limit notifications to resource_type WorkPackage
Oliver Günther8e241713db14
diff --git a/spec/mailers/previews/digest_mailer_preview.rb b/spec/mailers/previews/digest_mailer_preview.rbindex 27bf7e1263d..36380d60906 100644--- a/spec/mailers/previews/digest_mailer_preview.rb+++ b/spec/mailers/previews/digest_mailer_preview.rb@@ -30,7 +30,7 @@ class DigestMailerPreview < ActionMailer::Preview# Preview emails at http://localhost:3000/rails/mailers/digest_mailerdef work_packages- notifications = Notification.all+ notifications = Notification.where(resource_type: 'WorkPackage')DigestMailer.work_packages(notifications.first.recipient_id, [notifications.ids])endend