From d6ff645901023047da3da5bc054d62b8a84b3284 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Wed, 28 Apr 2021 16:01:01 +0800 Subject: [PATCH] * Fix bug #12440. --- module/execution/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {