diff --git a/module/bug/model.php b/module/bug/model.php index e4ccfe217e..4cef62c809 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1817,8 +1817,11 @@ class bugModel extends model $bugSteps .= $this->lang->bug->tplResult; $bugSteps .= $this->lang->bug->tplExpect; } + + if(!empty($run->task)) $testtask = $this->loadModel('testtask')->getById($run->task); + $executionID = isset($testtask->execution) ? $testtask->execution : 0; - return array('title' => $title, 'steps' => $bugSteps, 'storyID' => $run->case->story, 'moduleID' => $run->case->module, 'version' => $run->case->version); + return array('title' => $title, 'steps' => $bugSteps, 'storyID' => $run->case->story, 'moduleID' => $run->case->module, 'version' => $run->case->version, 'executionID' => $executionID); } /** diff --git a/module/testtask/view/results.html.php b/module/testtask/view/results.html.php index 8ba8c46c69..5611ea576a 100644 --- a/module/testtask/view/results.html.php +++ b/module/testtask/view/results.html.php @@ -51,12 +51,13 @@