Fix recursive self-loop

pull/3385/head
Alex Baker 9 months ago
parent 2ac328e1df
commit bc5e102e06

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

Loading…
Cancel
Save