diff --git a/vendor/magento/module-catalog/Controller/Adminhtml/Product/Attribute/Save.php b/vendor/magento/module-catalog/Controller/Adminhtml/Product/Attribute/Save.php index d443f399360a..a8479b4dbeb1 100644 --- a/vendor/magento/module-catalog/Controller/Adminhtml/Product/Attribute/Save.php +++ b/vendor/magento/module-catalog/Controller/Adminhtml/Product/Attribute/Save.php @@ -1,8 +1,8 @@ 0) { + $defaultOptions[] = $defaultValue; + } + } + if (!empty($defaultOptions)) { + $data['default_value'] = implode(",", $defaultOptions); + } + } + $model->addData($data); if (!$attributeId) { diff --git a/vendor/magento/module-catalog/view/adminhtml/templates/catalog/product/attribute/js.phtml b/vendor/magento/module-catalog/view/adminhtml/templates/catalog/product/attribute/js.phtml index 8dde7013763d..31812f86e86c 100644 --- a/vendor/magento/module-catalog/view/adminhtml/templates/catalog/product/attribute/js.phtml +++ b/vendor/magento/module-catalog/view/adminhtml/templates/catalog/product/attribute/js.phtml @@ -1,12 +1,13 @@ escapeJs($one) . "', false);"; + $scriptString .= "setRowVisibility('" . $escaper->escapeJs($one) . "', false);"; endif; endforeach; $scriptString .= <<