From a639724b923cdb13f2b07c4579dd64823696d37d Mon Sep 17 00:00:00 2001 From: ATM john Date: Sun, 8 Sep 2019 18:13:15 +0200 Subject: [PATCH] Fix follow tasks and time spent --- htdocs/core/boxes/box_task.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/boxes/box_task.php b/htdocs/core/boxes/box_task.php index 3a0b2c67af9..cf1d5241753 100644 --- a/htdocs/core/boxes/box_task.php +++ b/htdocs/core/boxes/box_task.php @@ -156,6 +156,8 @@ class box_task extends ModeleBoxes $sql.= " pt.entity = ".$conf->entity; $sql.= " AND p.fk_statut = ".Project::STATUS_VALIDATED; $sql.= " AND (pt.progress < 100 OR pt.progress IS NULL ) "; // 100% is done and not displayed + $sql.= " AND p.usage_task = 1 "; + $sql.= " ORDER BY pt.datee ASC, pt.dateo ASC"; $sql.= $db->plimit($max, 0);