Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reminder Failure with Group Assignments #16

Open
cuggen opened this issue Nov 22, 2013 · 2 comments
Open

Reminder Failure with Group Assignments #16

cuggen opened this issue Nov 22, 2013 · 2 comments

Comments

@cuggen
Copy link

cuggen commented Nov 22, 2013

We have several groups that will be assigned to issues with due dates assigned to them. When the rake runs we get the following error:

rake aborted!
undefined method `reminder_notification_array' for #Group:0x7369230

Is there a work around or a patch for this?

Thanks

@pharao45
Copy link

pharao45 commented Feb 4, 2014

+1. Same error. @Enkil can you fix this? Your plugin is exactly what I need!

@Akasch
Copy link

Akasch commented May 12, 2014

you cann avoid the issue with the following patch:

diff --git a/app/models/reminder_mailer.rb b/app/models/reminder_mailer.rb
index 8a8b529..bebe5d8 100644
--- a/app/models/reminder_mailer.rb
+++ b/app/models/reminder_mailer.rb
@@ -43,7 +43,8 @@ class ReminderMailer < Mailer
     scope = Issue.open.scoped(:conditions => ["#{Issue.table_name}.assigned_to_id IS NOT NULL" +
                                                   " AND #{Project.table_name}.status = #{Project::STATUS_ACTIVE}" +
                                                   " AND #{Issue.table_name}.due_date IS NOT NULL" +
-                                                  " AND #{User.table_name}.status = #{User::STATUS_ACTIVE}"]
+                                                  " AND #{User.table_name}.status = #{User::STATUS_ACTIVE}" +
+                                                  " AND #{User.table_name}.type = 'User'"]
     )
     issues = scope.all(:include => [:status, :assigned_to, :project, :tracker])
     issues.reject! { |issue| not (issue.remind? or issue.overdue?) }
@@ -58,4 +59,4 @@ class ReminderMailer < Mailer
     data[issue.assigned_to][issue.project] << issue
   end

-end
\ No newline at end of file
+end

it will disable notifications for issues witch are assigned to a Group, But the other Notificatons are working again.

If I have some time I will try to fix the wohle issue, but I am not a ruby programmer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants