From 1a861ef225984c1e29043241ed8b0fc3e9522768 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 11 Apr 2022 13:15:41 +0800 Subject: [PATCH] * Fix bug #18710. --- module/story/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index e9fce3faf9..abfe4b164f 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -163,7 +163,8 @@ class story extends control $object = $this->dao->findById((int)$objectID)->from(TABLE_PROJECT)->fetch(); if($object->type != 'project') { - $this->loadModel('action')->create('story', $storyID, 'linked2execution', '', $objectID); + $actionType = $object->type == 'kanban' ? 'linked2kanban' : 'linked2execution'; + $this->loadModel('action')->create('story', $storyID, $actionType, '', $objectID); } else {