From 3237e4e75235b7978a24a8b78426809d96a16794 Mon Sep 17 00:00:00 2001 From: zenggang Date: Mon, 17 Oct 2022 05:22:40 +0000 Subject: [PATCH] * Fix bug#28542 --- module/bug/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/bug/model.php b/module/bug/model.php index 7679e599ae..8fc9b37478 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2214,6 +2214,7 @@ class bugModel extends model if(!empty($run->task)) $testtask = $this->loadModel('testtask')->getById($run->task); $executionID = isset($testtask->execution) ? $testtask->execution : 0; + if(!$executionID and $caseID > 0) $executionID = isset($run->case->execution) ? $run->case->execution : 0; // Fix feedback #1043. if(!$executionID and $this->app->tab == 'execution') $executionID = $this->session->execution; return array('title' => $title, 'steps' => $bugSteps, 'storyID' => $run->case->story, 'moduleID' => $run->case->module, 'version' => $run->case->version, 'executionID' => $executionID);