@@ -35,7 +35,7 class IssueCategory < ActiveRecord::Base | |||
|
35 | 35 | # If a category is specified, issues are reassigned to this category |
|
36 | 36 | def destroy(reassign_to = nil) |
|
37 | 37 | if reassign_to && reassign_to.is_a?(IssueCategory) && reassign_to.project == self.project |
|
38 |
Issue.update_all({:category_id => reassign_to.id} |
|
|
38 | Issue.where({:category_id => id}).update_all({:category_id => reassign_to.id}) | |
|
39 | 39 | end |
|
40 | 40 | destroy_without_reassign |
|
41 | 41 | end |
General Comments 0
You need to be logged in to leave comments.
Login now