* Export tasks Add task mode.

This commit is contained in:
tianshujie
2022-05-27 05:38:05 +08:00
parent ae096f635c
commit bee7fe5ae4
2 changed files with 2 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ $config->task->exportFields = '
id, execution, module, story,
name, desc,
type, pri,estStarted, realStarted, deadline, status,estimate, consumed, left,
mailto, progress,
mailto, progress, mode,
openedBy, openedDate, assignedTo, assignedDate,
finishedBy, finishedDate, canceledBy, canceledDate,
closedBy, closedDate, closedReason,

View File

@@ -1975,6 +1975,7 @@ class task extends control
if(isset($taskLang->statusList[$task->status])) $task->status = $this->processStatus('task', $task);
if(isset($taskLang->reasonList[$task->closedReason])) $task->closedReason = $taskLang->reasonList[$task->closedReason];
if(isset($relatedModules[$task->module])) $task->module = $relatedModules[$task->module] . "(#$task->module)";
if(isset($taskLang->modeList[$task->mode])) $task->mode = $taskLang->modeList[$task->mode];
if(isset($users[$task->openedBy])) $task->openedBy = $users[$task->openedBy];
if(isset($users[$task->assignedTo])) $task->assignedTo = $users[$task->assignedTo];