Merge branch 'sprint/182_liumengyi_18619' into 'master'

* Fix bug #18619.

See merge request easycorp/zentaopms!1451
This commit is contained in:
孙广明
2022-01-18 00:29:35 +00:00
+1 -1
View File
@@ -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;