diff --git a/module/todo/config.php b/module/todo/config.php index 90d3c24eaa..9a6e2ffc8a 100644 --- a/module/todo/config.php +++ b/module/todo/config.php @@ -19,7 +19,7 @@ $config->todo->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools'); $config->todo->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools'); $config->todo->list = new stdclass(); -$config->todo->list->exportFields = 'id, account, date, begin, end, type, idvalue, pri, name, desc, status, private'; +$config->todo->list->exportFields = 'id, account, date, begin, end, type, assignedTo, idvalue, pri, name, desc, status, private'; $config->todo->list->customBatchCreateFields = 'type,pri,desc,beginAndEnd'; $config->todo->list->customBatchEditFields = 'pri,beginAndEnd,status'; diff --git a/module/todo/control.php b/module/todo/control.php index b126f003c9..90724a143a 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -615,6 +615,8 @@ class todo extends control $todo->begin = $todo->begin == '2400' ? '' : (isset($times[$todo->begin]) ? $times[$todo->begin] : $todo->begin); $todo->end = $todo->end == '2400' ? '' : (isset($times[$todo->end]) ? $times[$todo->end] : $todo->end); + $todo->assignedTo = zget($users, $todo->assignedTo); + $type = $todo->type; if(isset($users[$todo->account])) $todo->account = $users[$todo->account]; if($type == 'bug') $todo->name = isset($bugs[$todo->idvalue]) ? $bugs[$todo->idvalue] . "(#$todo->idvalue)" : '';