diff options
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 547fa9eaa..aa1d50cdf 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -94,9 +94,9 @@ class Member < ActiveRecord::Base end def set_issue_category_nil - if user + if user_id && project_id # remove category based auto assignments for this member - IssueCategory.where(["project_id = ? AND assigned_to_id = ?", project.id, user.id]). + IssueCategory.where(["project_id = ? AND assigned_to_id = ?", project_id, user_id]). update_all("assigned_to_id = NULL") end end |