File tree Expand file tree Collapse file tree 12 files changed +29
-12
lines changed
app/code/Magento/Bundle/Block
Adminhtml/Catalog/Product
Composite/Fieldset/Options/Type
Catalog/Product/View/Type/Bundle/Option Expand file tree Collapse file tree 12 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Op
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'product/composite/fieldset/options/type/checkbox.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: product/composite/fieldset/options/type/checkbox.phtml ' ;
19
19
20
20
/**
21
21
* @param string $elementId
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'product/composite/fieldset/options/type/multi.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: product/composite/fieldset/options/type/multi.phtml ' ;
19
19
20
20
/**
21
21
* @param string $elementId
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Radio extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'product/composite/fieldset/options/type/radio.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: product/composite/fieldset/options/type/radio.phtml ' ;
19
19
20
20
/**
21
21
* @param string $elementId
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Select extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Opti
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'product/composite/fieldset/options/type/select.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: product/composite/fieldset/options/type/select.phtml ' ;
19
19
20
20
/**
21
21
* @param string $elementId
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Bundle extends \Magento\Backend\Block\Widget implements \Magento\Backend\B
20
20
/**
21
21
* @var string
22
22
*/
23
- protected $ _template = 'product/edit/bundle.phtml ' ;
23
+ protected $ _template = 'Magento_Bundle:: product/edit/bundle.phtml ' ;
24
24
25
25
/**
26
26
* Core registry
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class Option extends \Magento\Backend\Block\Widget
26
26
/**
27
27
* @var string
28
28
*/
29
- protected $ _template = 'product/edit/bundle/option.phtml ' ;
29
+ protected $ _template = 'Magento_Bundle:: product/edit/bundle/option.phtml ' ;
30
30
31
31
/**
32
32
* Core registry
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Search extends \Magento\Backend\Block\Widget
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'product/edit/bundle/option/search.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: product/edit/bundle/option/search.phtml ' ;
19
19
20
20
/**
21
21
* @return void
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Selection extends \Magento\Backend\Block\Widget
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'product/edit/bundle/option/selection.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: product/edit/bundle/option/selection.phtml ' ;
19
19
20
20
/**
21
21
* Catalog data
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Op
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'catalog/product/view/type/bundle/option/checkbox.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle:: catalog/product/view/type/bundle/option/checkbox.phtml ' ;
19
19
}
Original file line number Diff line number Diff line change @@ -15,5 +15,22 @@ class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
15
15
/**
16
16
* @var string
17
17
*/
18
- protected $ _template = 'catalog/product/view/type/bundle/option/multi.phtml ' ;
18
+ protected $ _template = 'Magento_Bundle::catalog/product/view/type/bundle/option/multi.phtml ' ;
19
+
20
+ /**
21
+ * @inheritdoc
22
+ * @since 100.2.0
23
+ */
24
+ protected function assignSelection (\Magento \Bundle \Model \Option $ option , $ selectionId )
25
+ {
26
+ if (is_array ($ selectionId )) {
27
+ foreach ($ selectionId as $ id ) {
28
+ if ($ id && $ option ->getSelectionById ($ id )) {
29
+ $ this ->_selectedOptions [] = $ id ;
30
+ }
31
+ }
32
+ } else {
33
+ parent ::assignSelection ($ option , $ selectionId );
34
+ }
35
+ }
19
36
}
You can’t perform that action at this time.
0 commit comments