From c2b503d90fd87bf1caec3e69714efe952a0bc1af Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 31 Aug 2016 00:15:09 +0200 Subject: [PATCH] Fix missing filter --- htdocs/projet/tasks/time.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 09a86e1df58..ada4156ad1c 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -526,6 +526,7 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0) $sql .= " FROM ".MAIN_DB_PREFIX."projet_task_time as t, ".MAIN_DB_PREFIX."projet_task as pt, ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE t.fk_user = u.rowid AND t.fk_task = pt.rowid"; if (empty($projectidforalltimes)) $sql .= " AND t.fk_task =".$object->id; + else $sql.= " AND pt.fk_projet IN (".$projectidforalltimes.")"; $sql .= " ORDER BY t.task_date DESC, t.task_datehour DESC, t.rowid DESC"; $var=true; -- GitLab