diff --git a/module/execution/model.php b/module/execution/model.php index b22daa6c64..150eff6683 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')->exec(); + if($oldExecution->type == 'kanban') $this->dao->delete()->from(TABLE_TEAM)->where('root')->eq((int)$executionID)->andWhere('type')->eq('execution')->andWhere('role')->ne('')->exec(); /* Get team and language item. */ $this->lang->execution->team = $this->lang->execution->teamname;