* Finish task #61441.

This commit is contained in:
zhouxudong
2022-07-20 06:56:14 +00:00
parent 8e46671c20
commit c637a40725
+3 -2
View File
@@ -2190,6 +2190,8 @@ class task extends control
}
}
foreach($tasks as $task) $relatedBugIdList[$task->fromBug] = $task->fromBug;
$bugs = $this->loadModel('bug')->getByList($relatedBugIdList);
foreach($tasks as $task)
{
if($this->post->fileType == 'csv')
@@ -2203,8 +2205,7 @@ class task extends control
/* fill some field with useful value. */
$task->story = isset($relatedStories[$task->story]) ? $relatedStories[$task->story] . "(#$task->story)" : '';
$bug = $this->loadModel('bug')->getByID($task->fromBug);
$task->fromBug = empty($task->fromBug) ? '' : "#$task->fromBug " . $bug->title;
$task->fromBug = empty($task->fromBug) ? '' : "#$task->fromBug " . $bugs[$task->fromBug]->title;
if(isset($executions[$task->execution])) $task->execution = $executions[$task->execution] . "(#$task->execution)";
if(isset($taskLang->typeList[$task->type])) $task->type = $taskLang->typeList[$task->type];