Fixing style errors.
This commit is contained in:
parent
45bf3e4df9
commit
76c5a08242
@ -1377,9 +1377,9 @@ class Products extends DolibarrApi
|
|||||||
$result = $prodcomb->createProductCombination(DolibarrApiAccess::$user, $this->product, $features, array(), $price_impact_is_percent, $price_impact, $weight_impact, $reference);
|
$result = $prodcomb->createProductCombination(DolibarrApiAccess::$user, $this->product, $features, array(), $price_impact_is_percent, $price_impact, $weight_impact, $reference);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
return $result;
|
return $result;
|
||||||
} else {
|
} else {
|
||||||
throw new RestException(500, "Error creating new product variant");
|
throw new RestException(500, "Error creating new product variant");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user