mirror of
https://github.com/meineerde/redmine.git
synced 2026-04-02 05:51: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:
parent
1bda8ce940
commit
fd067bc9df
@ -1104,7 +1104,7 @@ class Issue < ActiveRecord::Base
|
|||||||
|
|
||||||
# Returns a scope of the given issues and their descendants
|
# Returns a scope of the given issues and their descendants
|
||||||
def self.self_and_descendants(issues)
|
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" +
|
" ON ancestors.root_id = #{Issue.table_name}.root_id" +
|
||||||
" AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
|
" AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
|
||||||
).
|
).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user