Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/query/ManiphestTaskQuery.php
Show First 20 Lines • Show All 635 Lines • ▼ Show 20 Lines | if ($this->hasOpenParents !== null) { | ||||
$parent_type, | $parent_type, | ||||
$join_type, | $join_type, | ||||
$task_table, | $task_table, | ||||
$open_statuses); | $open_statuses); | ||||
} | } | ||||
if ($this->hasOpenSubtasks !== null) { | if ($this->hasOpenSubtasks !== null) { | ||||
if ($this->hasOpenSubtasks) { | if ($this->hasOpenSubtasks) { | ||||
$join_type = 'JOIN'; | $join_type = qsprintf($conn, 'JOIN'); | ||||
} else { | } else { | ||||
$join_type = 'LEFT JOIN'; | $join_type = qsprintf($conn, 'LEFT JOIN'); | ||||
} | } | ||||
$joins[] = qsprintf( | $joins[] = qsprintf( | ||||
$conn, | $conn, | ||||
'%Q %T e_subtask | '%Q %T e_subtask | ||||
ON e_subtask.src = task.phid | ON e_subtask.src = task.phid | ||||
AND e_subtask.type = %d | AND e_subtask.type = %d | ||||
%Q %T subtask | %Q %T subtask | ||||
▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines |