diff --git a/module/bug/model.php b/module/bug/model.php index f739fe39a8..07c5a885f4 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1823,6 +1823,8 @@ class bugModel extends model if(!empty($run->task)) $testtask = $this->loadModel('testtask')->getById($run->task); $executionID = isset($testtask->execution) ? $testtask->execution : 0; + if(!$executionID and $this->app->tab == 'execution') $executionID = $this->session->execution; + 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 8195769cae..73d95ad5ad 100644 --- a/module/testtask/view/results.html.php +++ b/module/testtask/view/results.html.php @@ -51,7 +51,8 @@