Skip to content

Commit 3853022

Browse files
committed
MAGETWO-55935: [Bundle product] Cannot configure bundle product in order editing(admin panel)
2 parents ecd6a67 + 1541028 commit 3853022

File tree

3 files changed

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

3 files changed

+178
-146
lines changed

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

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

8080
/**
81+
* Returns the bundle product options
82+
* Will return cached options data if the product options are already initialized
83+
* In a case when $stripSelection parameter is true will reload stored bundle selections collection from DB
84+
*
85+
* @param bool $stripSelection
8186
* @return array
8287
*/
83-
public function getOptions()
88+
public function getOptions($stripSelection = false)
8489
{
8590
if (!$this->options) {
8691
$product = $this->getProduct();
@@ -96,7 +101,7 @@ public function getOptions()
96101

97102
$this->options = $optionCollection->appendSelections(
98103
$selectionCollection,
99-
false,
104+
$stripSelection,
100105
$this->catalogProduct->getSkipSaleableCheck()
101106
);
102107
}

0 commit comments

Comments
 (0)