* [apiv2] Only apiv1 check empty product
This commit is contained in:
@@ -153,7 +153,7 @@ class projectZen extends project
|
||||
$multipleProducts = $this->loadModel('product')->getMultiBranchPairs($topProgramID);
|
||||
foreach($rawdata->products as $index => $productID)
|
||||
{
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api')
|
||||
if($this->app->apiVersion == 'v1')
|
||||
{
|
||||
$product = $this->loadModel('product')->getById($productID);
|
||||
if(empty($product)) dao::$errors['products'][$index][$productID] = $this->lang->project->api->error->productNotFound;
|
||||
|
||||
Reference in New Issue
Block a user