Skip to content

Commit e210b70

Browse files
JosephMaxwellgelanivishal
authored andcommitted
Bundle checkboxes now are checked when item edited from cart
1 parent a474225 commit e210b70

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle

1 file changed

+3
-1
lines changed

app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle/Option.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ protected function _getSelectedOptions()
167167
*/
168168
protected function assignSelection(\Magento\Bundle\Model\Option $option, $selectionId)
169169
{
170-
if ($selectionId && $option->getSelectionById($selectionId)) {
170+
if (is_array($selectionId)) {
171+
$this->_selectedOptions = $selectionId;
172+
} else if ($selectionId && $option->getSelectionById($selectionId)) {
171173
$this->_selectedOptions = $selectionId;
172174
} elseif (!$option->getRequired()) {
173175
$this->_selectedOptions = 'None';

0 commit comments

Comments
 (0)