From b46ec89098a84d23547624ac8287ec8ea06a8fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Tue, 8 Feb 2022 14:01:40 +0800 Subject: [PATCH] * Fix bug close modal bug. --- module/bug/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 07fbe4a59c..2393e25f9c 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1415,8 +1415,7 @@ class bug extends control parse_str($extra, $output); if(isonlybody()) { - $execution = $this->loadModel('execution')->getByID($bug->execution); - if(isset($execution->type) and $execution->type == 'kanban') + if($this->app->tab == 'execution') { $regionID = isset($output['regionID']) ? $output['regionID'] : 0; $kanbanData = $this->loadModel('kanban')->getRDKanban($bug->execution, $this->session->execLaneType ? $this->session->execLaneType : 'all', 'id_desc', $regionID);