diff --git a/module/execution/config.php b/module/execution/config.php index a0d653269c..fb00ff4e8f 100644 --- a/module/execution/config.php +++ b/module/execution/config.php @@ -7,7 +7,7 @@ $config->execution->weekend = '2'; $config->execution->ownerFields = array('PO', 'PM', 'QD', 'RD'); $config->execution->list = new stdclass(); -$config->execution->list->exportFields = 'id,name,projectName,code,PM,end,status,totalEstimate,totalConsumed,totalLeft,progress'; +$config->execution->list->exportFields = 'id,name,projectName,code,PM,begin,end,status,totalEstimate,totalConsumed,totalLeft,progress'; $config->execution->modelList['scrum'] = 'sprint'; $config->execution->modelList['waterfall'] = 'stage'; diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index 63f42cf8b9..2080c2758a 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -436,19 +436,16 @@ $executionName = $executions[$task->execution]; $taskInfo = $task->id . ' ' . $this->lang->task->statusList[$task->status] . ' ' . $task->name; $class = isonlybody() ? 'showinonlybody' : 'iframe'; - echo "
  • " . html::a($this->createLink('task', 'view', "taskID=$task->id", '', true), $taskInfo, '', "class=$class data-width='80%'"); $execution = isset($story->executions[$task->execution]) ? $story->executions[$task->execution] : ''; $execName = (isset($execution->type) and $execution->type == 'kanban' and isonlybody()) ? $executionName : html::a($this->createLink('execution', 'view', "executionID=$task->execution"), $executionName, '', "class='text-muted'"); - echo $execName . '
  • '; + echo "
  • " . $execName . html::a($this->createLink('task', 'view', "taskID=$task->id", '', true), $taskInfo, '', "class=$class data-width='80%'") . '
  • '; } } - if(count($story->tasks) == 0) + foreach($story->executions as $executionID => $execution) { - foreach($story->executions as $executionID => $execution) - { - $execName = ($execution->type == 'kanban' and isonlybody()) ? $execution->name : html::a($this->createLink('execution', 'view', "executionID=$executionID"), $execution->name, '', "class='text-muted'"); - echo "
  • " . $execName . '
  • '; - } + if(isset($story->tasks[$executionID])) continue; + $execName = ($execution->type == 'kanban' and isonlybody()) ? $execution->name : html::a($this->createLink('execution', 'view', "executionID=$executionID"), $execution->name, '', "class='text-muted'"); + echo "
  • " . $execName . '
  • '; } ?>