From 7ecf79a163f02fd39813aa9412cd247cce5fd9e2 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 16 Aug 2022 16:36:03 +0800 Subject: [PATCH] * Fix bug#26545. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 9944422cb3..fdfc3479c8 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2534,7 +2534,7 @@ class executionModel extends model $this->story->setStage($storyID); $this->linkCases($executionID, (int)$products[$storyID], $storyID); - $action = $executionID == $this->session->project ? 'linked2project' : 'linked2execution'; + $action = $execution->type == 'project' ? 'linked2project' : 'linked2execution'; if($action == 'linked2execution' and $execution->type == 'kanban') $action = 'linked2kanban'; $this->action->create('story', $storyID, $action, '', $executionID); }