diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 13:43:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-13 13:43:01 +0000 |
commit | c93fccc84a939b14bd5d67d58514bd2ef58e4a08 (patch) | |
tree | 6b61e20a573584b35d0ce8de25f746e77658bdc4 /app/models/issue_category.rb | |
parent | d46a0a3a4fd91108da013bd2d348a575d9f860d6 (diff) | |
download | redmine-c93fccc84a939b14bd5d67d58514bd2ef58e4a08.tar.gz redmine-c93fccc84a939b14bd5d67d58514bd2ef58e4a08.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_category.rb')
-rw-r--r-- | app/models/issue_category.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_category.rb b/app/models/issue_category.rb index 628f2686f..6f0577ea1 100644 --- a/app/models/issue_category.rb +++ b/app/models/issue_category.rb @@ -35,7 +35,7 @@ class IssueCategory < ActiveRecord::Base # If a category is specified, issues are reassigned to this category def destroy(reassign_to = nil) if reassign_to && reassign_to.is_a?(IssueCategory) && reassign_to.project == self.project - Issue.update_all("category_id = #{reassign_to.id}", "category_id = #{id}") + Issue.update_all({:category_id => reassign_to.id}, {:category_id => id}) end destroy_without_reassign end |