Skip to content

Commit 1c51421

Browse files
committed
MAGETWO-70540: Edit bundle product from shopping cart work unexpected
1 parent 143cfb0 commit 1c51421

File tree

1 file changed

+3
-4
lines changed
  • dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Catalog/Product/View/Type

1 file changed

+3
-4
lines changed

dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Catalog/Product/View/Type/Bundle.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ protected function getSelectOptionsData(SimpleElement $element, $firstOption = 1
284284
}
285285

286286
/**
287-
* Parse option text to title, price and optionally add selected attribute value.
287+
* Parse option text to title and price
288288
*
289289
* @param string $optionText
290290
* @return array
@@ -294,12 +294,11 @@ protected function parseOptionText($optionText)
294294
preg_match('`^(.*?)\+ ?\$(\d.*?)$`sim', $optionText, $match);
295295
$optionPrice = isset($match[2]) ? str_replace(',', '', $match[2]) : 0;
296296
$optionTitle = isset($match[1]) ? trim($match[1]) : $optionText;
297-
$option = [
297+
298+
return [
298299
'title' => $optionTitle,
299300
'price' => $optionPrice
300301
];
301-
302-
return $option;
303302
}
304303

305304
/**

0 commit comments

Comments
 (0)