I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2422

User is not removed from project_subscribers table when user is deleted from Redmine.

Added by Cheyenne Wills over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Redmine version:
3.3.1
External issue:

Description

Ran into an internal Redmine error after deleting a user from Redmine. The project_subscribers table still had a record for the deleted user.

I’m using the latest checkout level from the repository.

NoMethodError (undefined method `allowed_to?' for nil:NilClass):
  plugins/subscription/lib/issue_subscription_patch.rb:23:in `block in notified_users_with_subscribers'
  plugins/subscription/lib/issue_subscription_patch.rb:21:in `notified_users_with_subscribers'
  app/models/mailer.rb:62:in `deliver_issue_add'
  app/models/issue.rb:1696:in `send_notification'
  app/models/issue.rb:210:in `create_or_update'
  app/controllers/issues_controller.rb:140:in `create'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Manually deleting the offending entry from the project_subscribers table corrected the error.

Also available in: Atom PDF

Terms of use | Privacy policy