* Code for task #73233.

This commit is contained in:
孙广明
2022-10-26 09:27:33 +08:00
parent bb5f7d294e
commit e24e771dee
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -2165,7 +2165,7 @@ class projectModel extends model
$executions = $this->dao->select('id')->from(TABLE_EXECUTION)->where('project')->eq((int)$projectID)->fetchPairs('id');
$this->dao->delete()->from(TABLE_PROJECTPRODUCT)->where('project')->in($executions)->andWhere('product')->notin($products)->exec();
if(isset($_POST['division'])) $this->dao->update(TABLE_PROJECT)->set('division')->eq('1')->where('id')->eq((int)$projectID)->exec();
if(!empty($_POST['division'])) $this->dao->update(TABLE_PROJECT)->set('division')->eq('1')->where('id')->eq((int)$projectID)->exec();
}
$oldProductKeys = array_keys($oldProjectProducts);