From 38fd427535d7881ba2f06ff745dd59691ac280fd Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Thu, 24 Dec 2020 09:26:36 +0800 Subject: [PATCH] * Fix bug details. --- module/bug/control.php | 5 ++--- module/my/view/bug.html.php | 8 +------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index b4556bebd8..b32955383c 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -33,7 +33,7 @@ class bug extends control $this->loadModel('task'); $this->view->products = $this->products = $this->product->getProductPairsByProject($this->session->PRJ); - if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug"))); + if($this->session->PRJ and empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug"))); } /** @@ -980,8 +980,7 @@ class bug extends control } $this->loadModel('score')->create('ajax', 'batchOther'); } - if($type == 'product') die(js::locate($this->session->bugList, 'parent')); - if($type == 'my') die(js::locate($this->createLink('my', 'bug'))); + if($type == 'product' || $type == 'my') die(js::locate($this->session->bugList, 'parent')); die(js::locate($this->createLink('project', 'bug', "projectID=$projectID"))); } diff --git a/module/my/view/bug.html.php b/module/my/view/bug.html.php index d9008934e0..c40124eed6 100644 --- a/module/my/view/bug.html.php +++ b/module/my/view/bug.html.php @@ -34,11 +34,10 @@