From 650abbb5f5e35ef11e31ca1f99f0a29dfc35e1b3 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 30 Jan 2023 15:53:48 +0800 Subject: [PATCH] * Fix bug of task #83210. --- module/execution/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index ba65966a19..e136d68f1a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1817,10 +1817,10 @@ class execution extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('doc', 'objectLibs', "type=execution"))); } - if(!empty($projectID) and $project->model == 'kanban') + if(!empty($projectID) and strpos(',kanban,agileplus,', ",$project->model,") !== false) { $execution = $this->execution->getById($executionID); - $this->loadModel('kanban')->createRDKanban($execution); + if($execution->type == 'kanban') $this->loadModel('kanban')->createRDKanban($execution); } if(!empty($_POST['plans']))