* Adjust codes.
This commit is contained in:
@@ -605,7 +605,7 @@ class productModel extends model
|
||||
*
|
||||
* @param array $appendIDList
|
||||
* @access public
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function getProductsGroupByProgram($appendIDList = array())
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user