mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-27 10:51:15 +00:00
fix source indent of Issue#self_and_descendants
git-svn-id: http://svn.redmine.org/redmine/trunk@19885 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2f19b1eaa7
commit
9568e81d73
@ -1187,7 +1187,8 @@ class Issue < ActiveRecord::Base
|
||||
|
||||
# Returns a scope of the given issues and their descendants
|
||||
def self.self_and_descendants(issues)
|
||||
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"
|
||||
).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user