Skip to content

Commit 70bb317

Browse files
committed
MAGETWO-55935: [Bundle product] Cannot configure bundle product in order editing(admin panel)
1 parent 152309b commit 70bb317

File tree

3 files changed

+179
-146
lines changed
  • app/code/Magento/Bundle

3 files changed

+179
-146
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,15 @@ public function __construct(
7878
}
7979

8080
/**
81+
*
82+
* Returns the bundle product options
83+
* Will return stored options data if the product options are already initialized
84+
* In a case when $stripSelection parameter is true will reset stored bundle selections collection
85+
*
86+
* @param bool $stripSelection
8187
* @return array
8288
*/
83-
public function getOptions()
89+
public function getOptions($stripSelection = false)
8490
{
8591
if (!$this->options) {
8692
$product = $this->getProduct();
@@ -96,7 +102,7 @@ public function getOptions()
96102

97103
$this->options = $optionCollection->appendSelections(
98104
$selectionCollection,
99-
false,
105+
$stripSelection,
100106
$this->catalogProduct->getSkipSaleableCheck()
101107
);
102108
}

0 commit comments

Comments
 (0)