Skip to content

Commit e09e4c9

Browse files
author
Valeriy Nayda
committed
MAGETWO-51256: Error in process of update CustomizedOptions over API
-- fix error message
1 parent 7f898eb commit e09e4c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Product/Option/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function save(\Magento\Catalog\Api\Data\ProductCustomOptionInterface $opt
127127
{
128128
$productSku = $option->getProductSku();
129129
if (!$productSku) {
130-
throw new CouldNotSaveException(__('ProductSku should be specify'));
130+
throw new CouldNotSaveException(__('ProductSku should be specified'));
131131
}
132132
$product = $this->productRepository->get($productSku);
133133
$metadata = $this->getMetadataPool()->getMetadata(ProductInterface::class);

dev/tests/api-functional/testsuite/Magento/Catalog/Api/_files/product_options_update_negative.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
'sku' => 'sku1',
1818
'max_characters' => 10,
1919
],
20-
'ProductSku should be specify',
20+
'ProductSku should be specified',
2121
]
2222
];

0 commit comments

Comments
 (0)