From 451042f0a4b01b0b8f38ffe41b1129936f235c35 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 17 Jan 2022 11:12:26 +0800 Subject: [PATCH] * Fix bug #18491. --- 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 fabfd73142..88f1f567dd 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -523,7 +523,7 @@ class executionModel extends model ->limit(1) ->exec(); - if($oldExecution->type == 'kanban') $this->dao->delete()->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->exec(); + if($oldExecution->type == 'kanban') $this->dao->delete()->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->andWhere('type')->eq('execution')->exec(); /* Get team and language item. */ $this->lang->execution->team = $this->lang->execution->teamname;