Skip to content

Commit 03cfa37

Browse files
authored
Custom option type select - Allow modify list of single selection options type
Make associative array as a default value in constructor
1 parent 996cb1a commit 03cfa37

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Model/Product/Option/Type

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/Select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public function __construct(
5858
parent::__construct($checkoutSession, $scopeConfig, $data);
5959

6060
$this->singleSelectionTypes = $singleSelectionTypes ?: [
61-
\Magento\Catalog\Api\Data\ProductCustomOptionInterface::OPTION_TYPE_DROP_DOWN,
62-
\Magento\Catalog\Api\Data\ProductCustomOptionInterface::OPTION_TYPE_RADIO,
61+
'drop_down' => \Magento\Catalog\Api\Data\ProductCustomOptionInterface::OPTION_TYPE_DROP_DOWN,
62+
'radio' => \Magento\Catalog\Api\Data\ProductCustomOptionInterface::OPTION_TYPE_RADIO,
6363
];
6464
}
6565

0 commit comments

Comments
 (0)