* Modify Edit logic for switching program.

This commit is contained in:
tianshujie
2022-06-17 11:46:43 +08:00
parent a2421b85bb
commit a974f333d2
+1 -1
View File
@@ -2012,7 +2012,7 @@ class project extends control
$programIdList = $this->dao->select('id, program')->from(TABLE_PRODUCT)->where('id')->in(array_keys($multiLinkedProducts))->fetchPairs();
foreach($multiLinkedProducts as $productID => $product)
{
if($programIdList[$productID] != $programID) $canChange = false;
if($programIdList[$productID] != $newTopPGM) $canChange = false;
$multiLinkedProjects[$productID] = $this->loadModel('product')->getProjectPairsByProduct($productID);
}
$response['result'] = false;