diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-20 13:53:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-20 13:53:45 +0000 |
commit | 889bf388be0325d4c38b984a4eaa23db6102938a (patch) | |
tree | 838dd7bef5220f81dc46be841c2a90adf94ac43d /app/models/member.rb | |
parent | 16e9ffce0d0e803f02e3660450120602bca8aff5 (diff) | |
download | redmine-889bf388be0325d4c38b984a4eaa23db6102938a.tar.gz redmine-889bf388be0325d4c38b984a4eaa23db6102938a.zip |
Fixed: error when removing a project member (postgresql and sqlite only).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1082 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 39703147d..0d0540690 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -33,6 +33,6 @@ class Member < ActiveRecord::Base def before_destroy # remove category based auto assignments for this member - project.issue_categories.update_all "assigned_to_id = NULL", ["assigned_to_id = ?", self.user.id] + IssueCategory.update_all "assigned_to_id = NULL", ["project_id = ? AND assigned_to_id = ?", project.id, user.id] end end |