]> source.dussan.org Git - redmine.git/commitdiff
Unneeded assignment (#24693).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 31 Dec 2016 16:30:33 +0000 (16:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 31 Dec 2016 16:30:33 +0000 (16:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16122 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 3e19882445d68677fb2404cabbd5341222c6f7a3..2111b0489599406a6101eadeeb4d7f97fd3c76db 100644 (file)
@@ -1104,7 +1104,7 @@ class Issue < ActiveRecord::Base
 
   # Returns a scope of the given issues and their descendants
   def self.self_and_descendants(issues)
-    issue_ids = Issue.joins("JOIN #{Issue.table_name} ancestors" +
+    Issue.joins("JOIN #{Issue.table_name} ancestors" +
         " ON ancestors.root_id = #{Issue.table_name}.root_id" +
         " AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
       ).