* Finish task #61441.

This commit is contained in:
zhouxudong
2022-07-20 02:30:19 +00:00
parent 1e14279144
commit 178ea59c4e
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ $config->task->editor->pause = array('id' => 'comment', 'tools' => 'simpleToo
$config->task->removeFields = 'objectTypeList,productList,executionList,gitlabID,gitlabProjectID,product';
$config->task->exportFields = '
id, execution, module, story,
id, execution, module, fromBug, story,
name, desc,
type, pri,estStarted, realStarted, deadline, status,estimate, consumed, left,
mailto, progress, mode,
+3
View File
@@ -2203,6 +2203,9 @@ 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) ? '0' : "#$task->fromBug " . $bug->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];
if(isset($taskLang->priList[$task->pri])) $task->pri = $taskLang->priList[$task->pri];