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

Unify Reminder#unread_notifactions query

Kabiru Mwenja64cecd324116
diff --git a/app/models/reminder.rb b/app/models/reminder.rb
index 0c8bb474b61..6c1eb71ef41 100644
--- a/app/models/reminder.rb
+++ b/app/models/reminder.rb
@@ -34,7 +34,7 @@ class Reminder < ApplicationRecord
has_many :notifications, through: :reminder_notifications
def unread_notifications?
- notifications.exists?(read_ian: [false, nil])
+ unread_notifications.exists?
end
def unread_notifications