Commit a3eb4e93 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

artefact/plans: Change tasklist ordering to ASC

It doesn't seem to make sense to order decending and
near-completion date tasks last.

Also moved order/limit clasues to dmlib.
Signed-off-by: default avatarDan Poltawski <>
parent f3317807
......@@ -484,8 +484,7 @@ class ArtefactTypeTask extends ArtefactType {
FROM {artefact} a
JOIN {artefact_plans_task} at ON at.artefact =
WHERE a.artefacttype = 'task' AND a.parent = ?
ORDER BY at.completiondate DESC
LIMIT ? OFFSET ?", array($plan, $limit, $offset)))
ORDER BY at.completiondate ASC", array($plan), $offset, $limit))
|| ($results = array());
// format the date and setup completed for display if task is incomplete
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment