From 098622ffae44ccef2de058015ff5a6b7f6796cf4 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 18 Jan 2022 09:29:04 +0800 Subject: [PATCH] * Fix bug #18619. --- 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 150eff6683..a23d43d470 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)->andWhere('type')->eq('execution')->andWhere('role')->ne('')->exec(); + if($oldExecution->type == 'kanban') $this->dao->delete()->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->andWhere('type')->eq('execution')->andWhere('account')->ne($oldExecution->openedBy)->exec(); /* Get team and language item. */ $this->lang->execution->team = $this->lang->execution->teamname;