*Fix bug#17639

This commit is contained in:
孙华伟
2022-03-14 16:26:45 +08:00
parent 60e271f10a
commit 951a3ab1af
+1
View File
@@ -1528,6 +1528,7 @@ class projectModel extends model
extract($data);
$projectID = (int)$projectID;
$projectType = 'project';
$accounts = array_unique($accounts);
$oldJoin = $this->dao->select('`account`, `join`')->from(TABLE_TEAM)->where('root')->eq($projectID)->andWhere('type')->eq($projectType)->fetchPairs();
$this->dao->delete()->from(TABLE_TEAM)->where('root')->eq($projectID)->andWhere('type')->eq($projectType)->exec();