* Adjust codes.

This commit is contained in:
daitingting
2022-10-27 06:30:12 +00:00
parent 7727f1ee7b
commit c338b9a237
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ class productModel extends model
*
* @param array $appendIDList
* @access public
* @return void
* @return array
*/
public function getProductsGroupByProgram($appendIDList = array())
{
+2 -1
View File
@@ -2135,6 +2135,8 @@ class project extends control
return $this->send(array('result' => 'fail', 'message' => dao::getError()));
}
$oldProducts = $this->product->getProducts($projectID);
$this->project->updateProducts($projectID);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
@@ -2144,7 +2146,6 @@ class project extends control
if($executionID) $this->execution->updateProducts($executionID);
}
$oldProducts = $this->product->getProducts($projectID);
$newProducts = $this->product->getProducts($projectID);
$oldProductIDs = array_keys($oldProducts);
$newProductIDs = array_keys($newProducts);