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 . '';
}
?>