File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Product/Composite Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
class Configure extends \Magento \Catalog \Test \Block \Adminhtml \Product \Composite \Configure
16
16
{
17
- /**
18
- * Option selector
19
- *
20
- * @var string
21
- */
22
- protected $ option = '//fieldset[contains(@class,"composite-bundle")]//label[.="%option_name%"]//following-sibling::*//%selector% ' ;
23
-
24
17
/**
25
18
* Fill options for the product
26
19
*
@@ -43,6 +36,8 @@ protected function prepareData(array $fields)
43
36
{
44
37
$ productOptions = [];
45
38
$ checkoutData = $ fields ['checkout_data ' ]['options ' ];
39
+ $ optionLocator = '//fieldset[contains(@class,"composite-bundle")]//label[.="%option_name%"] '
40
+ . '//following-sibling::*//%selector% ' ;
46
41
47
42
if (!empty ($ checkoutData ['bundle_options ' ])) {
48
43
foreach ($ checkoutData ['bundle_options ' ] as $ key => $ option ) {
@@ -52,7 +47,7 @@ protected function prepareData(array $fields)
52
47
$ optionMapping [$ type ]['selector ' ] = str_replace (
53
48
'%selector% ' ,
54
49
str_replace ('%product_name% ' , $ option ['value ' ]['name ' ], $ optionMapping [$ type ]['selector ' ]),
55
- str_replace ('%option_name% ' , $ option ['title ' ], $ this -> option )
50
+ str_replace ('%option_name% ' , $ option ['title ' ], $ optionLocator )
56
51
);
57
52
58
53
$ optionMapping [$ type ]['value ' ] = ($ type == 'checkbox ' || $ type == 'radiobutton ' )
You can’t perform that action at this time.
0 commit comments