From bc71469cd1020e00beed317a23f3a750dbda8732 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Wed, 28 Apr 2021 15:07:12 +0800 Subject: [PATCH] * Adjust the product getSwitcher link under the testtask module. --- module/product/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index 5f8bb17ca5..dc6149eb9a 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1601,7 +1601,8 @@ class productModel extends model } elseif($module == 'testtask') { - $link = helper::createLink($module, 'browse', "productID=%s" . ($branch ? "&branch=%s" : '&branch=0') . "&extra=$extra"); + $extra = $method != 'browse' ? '' : "&extra=$extra"; + $link = helper::createLink($module, 'browse', "productID=%s" . ($branch ? "&branch=%s" : '&branch=0') . $extra); } elseif($module == 'bug' && $method == 'view') {