Skip to content

Commit ef9989c

Browse files
committed
AC-15646::Unable to create new multiselect attribute from the product page
1 parent b3774fb commit ef9989c

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function execute()
273273
$data['default_value'] = null;
274274
} elseif (isset($data['default'])) {
275275
$defaultOptions = [];
276-
foreach ($data['default'] as $defaultValue) {
276+
foreach ((array)$data['default'] as $defaultValue) {
277277
if ((int)$defaultValue > 0) {
278278
$defaultOptions[] = $defaultValue;
279279
}

0 commit comments

Comments
 (0)