Skip to content

Commit e2a9439

Browse files
committed
ACP2E-3523: Issue with Default Attribute Option Value Behavior for Multiselect
1 parent 504d9a1 commit e2a9439

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
@@ -274,7 +274,7 @@ public function execute()
274274
} elseif (isset($data['default'])) {
275275
$defaultOptions = [];
276276
foreach ($data['default'] as $defaultValue) {
277-
if (intval($defaultValue) > 0) {
277+
if ((int)$defaultValue > 0) {
278278
$defaultOptions[] = $defaultValue;
279279
}
280280
}

0 commit comments

Comments
 (0)