diff --git a/module/execution/model.php b/module/execution/model.php index a8e46e628e..6f2eab0f95 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1178,9 +1178,9 @@ class executionModel extends model { $link = helper::createLink($module, $method, "productID=0&branch=0&extra=executionID=%s"); } - elseif($module == 'bug' and $method == 'view') + elseif(in_array($module, array('bug', 'case', 'testtask', 'testreport')) and $method == 'view') { - $link = helper::createLink('execution', 'bug', "executionID=%s"); + $link = helper::createLink('execution', $module, "executionID=%s"); } else {