From 03a729542cc9b0553f4ca2aba9112f5728c69527 Mon Sep 17 00:00:00 2001 From: zenggang Date: Fri, 10 Dec 2021 05:51:55 +0000 Subject: [PATCH] * Fix bug#17345 --- module/action/model.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/action/model.php b/module/action/model.php index b6a12fa9f3..0bb71ac84d 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -233,6 +233,12 @@ class actionModel extends model $record->execution = (int)$extra; } + if($objectType == 'story' and $actionType == 'importfromgitlab') + { + $record->execution = $record->project; + $record->project = $this->dao->select('project')->from(TABLE_EXECUTION)->where('id')->eq($record->execution)->fetch('project'); + } + if($objectType == 'case' and (strpos(',linked2testtask,unlinkedfromtesttask,assigned,run,', ',' . $actionType . ',') !== false) and (int)$extra) { $testtask = $this->dao->select('project,execution')->from(TABLE_TESTTASK)->where('id')->eq((int)$extra)->fetch();