From 30c66ff864b0fa43c2b85edc1e211ab9aa6e74b8 Mon Sep 17 00:00:00 2001 From: Yagami Date: Mon, 29 Oct 2018 10:08:03 +0800 Subject: [PATCH] * Fix child task export name. --- module/task/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index 36d23c64a0..bf40410c65 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -1394,7 +1394,7 @@ class task extends control if(isset($users[$task->closedBy])) $task->closedBy = $users[$task->closedBy]; if(isset($users[$task->lastEditedBy])) $task->lastEditedBy = $users[$task->lastEditedBy]; - if($task->parent > 0) $task->name = '>' . $task->name; + if($task->parent > 0 && strpos($task->name, htmlentities('>')) !== 0) $task->name = '>' . $task->name; if(!empty($task->team)) $task->name = '[' . $taskLang->multipleAB . '] ' . $task->name; $task->openedDate = substr($task->openedDate, 0, 10);