We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb26f4 commit f3dcf3aCopy full SHA for f3dcf3a
dev/tests/api-functional/testsuite/Magento/Downloadable/Api/ProductRepositoryTest.php
@@ -605,6 +605,15 @@ protected function deleteProductBySku($productSku)
605
*/
606
protected function saveProduct($product)
607
{
608
+ if (isset($product['custom_attributes'])) {
609
+ for ($i=0; $i<sizeof($product['custom_attributes']); $i++) {
610
+ if ($product['custom_attributes'][$i]['attribute_code'] == 'category_ids'
611
+ && !is_array($product['custom_attributes'][$i]['value'])
612
+ ) {
613
+ $product['custom_attributes'][$i]['value'] = [""];
614
+ }
615
616
617
$resourcePath = self::RESOURCE_PATH . '/' . $product['sku'];
618
$serviceInfo = [
619
'rest' => [
0 commit comments