Skip to content

Commit b06db1f

Browse files
committed
Fixed issue 27051: Saving an attribute with backend_type static
1 parent bf03292 commit b06db1f

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ public function execute()
258258
unset($data['apply_to']);
259259
}
260260

261+
if ($model->getBackendType() == 'static' && !$model->getIsUserDefined()) {
262+
$data['frontend_class'] = $model->getFrontendClass();
263+
}
264+
261265
$model->addData($data);
262266

263267
if (!$attributeId) {

0 commit comments

Comments
 (0)