File tree 3 files changed +16
-8
lines changed
app/code/Magento/Catalog/view/adminhtml/layout 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 8
8
<layout xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/layout_generic.xsd" >
9
9
<container name =" root" >
10
10
<block class =" Magento\Catalog\Block\Adminhtml\Product\Composite\Fieldset" name =" product.composite.fieldset" >
11
- <block class =" Magento\Catalog\Block\Adminhtml\Product\Composite\Fieldset\Options" template =" Magento_Catalog::catalog/product/composite/fieldset/options.phtml" >
11
+ <block class =" Magento\Catalog\Block\Adminhtml\Product\Composite\Fieldset\Options" name = " product.composite.fieldset.options " template =" Magento_Catalog::catalog/product/composite/fieldset/options.phtml" >
12
12
<block class =" Magento\Catalog\Block\Product\View\Options\Type\DefaultType" as =" default" template =" Magento_Catalog::catalog/product/composite/fieldset/options/type/default.phtml" />
13
13
<block class =" Magento\Catalog\Block\Product\View\Options\Type\Text" as =" text" template =" Magento_Catalog::catalog/product/composite/fieldset/options/type/text.phtml" />
14
14
<block class =" Magento\Catalog\Block\Product\View\Options\Type\File" as =" file" template =" Magento_Catalog::catalog/product/composite/fieldset/options/type/file.phtml" />
Original file line number Diff line number Diff line change 91
91
this . get = function ( name ) {
92
92
var arg = name + '=' ,
93
93
aLength = arg . length ,
94
- cLength = document . cookie . length ,
94
+ cookie = document . cookie ,
95
+ cLength = cookie . length ,
95
96
i = 0 ,
96
97
j = 0 ;
97
98
98
99
while ( i < cLength ) {
99
100
j = i + aLength ;
100
101
101
- if ( document . cookie . substring ( i , j ) === arg ) {
102
+ if ( cookie . substring ( i , j ) === arg ) {
102
103
return this . getCookieVal ( j ) ;
103
104
}
104
- i = document . cookie . indexOf ( ' ' , i ) + 1 ;
105
+ i = cookie . indexOf ( ' ' , i ) + 1 ;
105
106
106
107
if ( i === 0 ) {
107
108
break ;
130
131
* @return {String }
131
132
*/
132
133
this . getCookieVal = function ( offset ) {
133
- var endstr = document . cookie . indexOf ( ';' , offset ) ;
134
+ var cookie = document . cookie ,
135
+ endstr = cookie . indexOf ( ';' , offset ) ;
134
136
135
137
if ( endstr === - 1 ) {
136
- endstr = document . cookie . length ;
138
+ endstr = cookie . length ;
137
139
}
138
140
139
- return decodeURIComponent ( document . cookie . substring ( offset , endstr ) ) ;
141
+ return decodeURIComponent ( cookie . substring ( offset , endstr ) ) ;
140
142
} ;
141
143
142
144
return this ;
Original file line number Diff line number Diff line change @@ -115,7 +115,13 @@ define('mixins', [
115
115
*/
116
116
getMixins : function ( path ) {
117
117
var config = module . config ( ) || { } ,
118
- mixins = config [ path ] || { } ;
118
+ mixins ;
119
+
120
+ // fix for when urlArgs is set
121
+ if ( path . indexOf ( '?' ) !== - 1 ) {
122
+ path = path . substring ( 0 , path . indexOf ( '?' ) ) ;
123
+ }
124
+ mixins = config [ path ] || { } ;
119
125
120
126
return Object . keys ( mixins ) . filter ( function ( mixin ) {
121
127
return mixins [ mixin ] !== false ;
You can’t perform that action at this time.
0 commit comments