Only check path on subtasks

pull/3371/head
Alex Baker 9 months ago
parent e796da6e37
commit 32c4fe2511

@ -106,7 +106,7 @@ internal object TaskListQueryRecursive {
INNER JOIN recursive_tasks ON tasks.parent = recursive_tasks.task INNER JOIN recursive_tasks ON tasks.parent = recursive_tasks.task
WHERE WHERE
${activeAndVisible()} ${activeAndVisible()}
AND recursive_tasks.recursive_path NOT LIKE '%/' || tasks._id || '/%' AND (indent = 0 OR recursive_tasks.recursive_path NOT LIKE '%/' || tasks._id || '/%')
ORDER BY ORDER BY
parent_complete, parent_complete,
indent DESC, indent DESC,

Loading…
Cancel
Save