From 46f70ebf8e2cea36b5ccd0d2c3d9617b5a01b3d5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 26 Feb 2018 12:01:13 +0100 Subject: [PATCH] FIX Useless clean of tree --- htdocs/projet/tasks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 2eb9bc1e44f..4a5bcdab70b 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -575,7 +575,7 @@ else if ($id > 0 || ! empty($ref)) } else { - if ($nboftaskshown < count($tasksarray)) + if ($nboftaskshown < count($tasksarray) && ! GETPOST('search_user_id','int')) { include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; cleanCorruptedTree($db, 'projet_task', 'fk_task_parent');