Commit 67f81cb4 by lmf

Merge branch 'master' of http://47.99.244.21:9999/root/joshine

parents 25730dfd 3364f2ed
...@@ -132,12 +132,15 @@ class ProductRepositorySave ...@@ -132,12 +132,15 @@ class ProductRepositorySave
foreach ($attributeCodes as $attributeCode) { foreach ($attributeCodes as $attributeCode) {
if ($variation->getData($attributeCode) === null) { if ($variation->getData($attributeCode) === null) {
throw new InputException( throw new InputException(
__( 'Product with id '.$productId.' does not contain required attribute '. $attributeCode
'Product with id "%1" does not contain required attribute "%2".',
$productId,
$attributeCode
)
); );
// throw new InputException(
// __(
// 'Product with id "%1" does not contain required attribute "%2".',
// $productId,
// $attributeCode
// )
// );
} }
$valueKey .= $attributeCode . ':' . $variation->getData($attributeCode) . ';'; $valueKey .= $attributeCode . ':' . $variation->getData($attributeCode) . ';';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment