We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a474225 commit e210b70Copy full SHA for e210b70
app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle/Option.php
@@ -167,7 +167,9 @@ protected function _getSelectedOptions()
167
*/
168
protected function assignSelection(\Magento\Bundle\Model\Option $option, $selectionId)
169
{
170
- if ($selectionId && $option->getSelectionById($selectionId)) {
+ if (is_array($selectionId)) {
171
+ $this->_selectedOptions = $selectionId;
172
+ } else if ($selectionId && $option->getSelectionById($selectionId)) {
173
$this->_selectedOptions = $selectionId;
174
} elseif (!$option->getRequired()) {
175
$this->_selectedOptions = 'None';
0 commit comments