1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 04:09:38 +00:00

Unneeded assignment (#24693).

git-svn-id: http://svn.redmine.org/redmine/trunk@16122 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-12-31 16:30:33 +00:00
parent 1bda8ce940
commit fd067bc9df

View 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"
).