Merge branch 'mayue_fix_bug21904' into 'master'

* Fix bug #21904.

See merge request easycorp/zentaopms!3059
This commit is contained in:
孙广明
2022-04-21 07:18:06 +00:00
+3 -1
View File
@@ -753,7 +753,9 @@ class branchModel extends model
->andWhere('product')->eq($productID)
->fetchGroup('project');
$this->dao->delete()->from(TABLE_PROJECTPRODUCT)->where('branch')->in($mergedBranches . ",$targetBranch")->exec();
$this->dao->delete()->from(TABLE_PROJECTPRODUCT)->where('branch')->in($mergedBranches . ",$targetBranch")
->andWhere('product')->eq($productID)
->exec();
foreach($linkedProject as $projectID => $projectProducts)
{
$plan = 0;