Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/query/PhabricatorProjectQuery.php
| Show First 20 Lines • Show All 551 Lines • ▼ Show 20 Lines | if ($this->ancestorPHIDs !== null) { | ||||
| foreach ($ancestor_paths as $ancestor_path) { | foreach ($ancestor_paths as $ancestor_path) { | ||||
| $sql[] = qsprintf( | $sql[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| '(projectPath LIKE %> AND projectDepth > %d)', | '(projectPath LIKE %> AND projectDepth > %d)', | ||||
| $ancestor_path['projectPath'], | $ancestor_path['projectPath'], | ||||
| $ancestor_path['projectDepth']); | $ancestor_path['projectDepth']); | ||||
| } | } | ||||
| $where[] = '('.implode(' OR ', $sql).')'; | $where[] = qsprintf($conn, '%LO', $sql); | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| 'parentProjectPHID IS NOT NULL'); | 'parentProjectPHID IS NOT NULL'); | ||||
| } | } | ||||
| if ($this->isMilestone !== null) { | if ($this->isMilestone !== null) { | ||||
| if ($this->isMilestone) { | if ($this->isMilestone) { | ||||
| ▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines | |||||