Skip to content

Commit 46ae379

Browse files
Merge branch 'develop' of https://github.com/magento/magento2ce into MAGETWO-69556
2 parents 773d4a3 + 2bc3bb0 commit 46ae379

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

app/code/Magento/Catalog/view/adminhtml/layout/CATALOG_PRODUCT_COMPOSITE_CONFIGURE.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
99
<container name="root">
1010
<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">
1212
<block class="Magento\Catalog\Block\Product\View\Options\Type\DefaultType" as="default" template="Magento_Catalog::catalog/product/composite/fieldset/options/type/default.phtml"/>
1313
<block class="Magento\Catalog\Block\Product\View\Options\Type\Text" as="text" template="Magento_Catalog::catalog/product/composite/fieldset/options/type/text.phtml"/>
1414
<block class="Magento\Catalog\Block\Product\View\Options\Type\File" as="file" template="Magento_Catalog::catalog/product/composite/fieldset/options/type/file.phtml"/>

lib/web/mage/cookies.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,18 @@
9191
this.get = function (name) {
9292
var arg = name + '=',
9393
aLength = arg.length,
94-
cLength = document.cookie.length,
94+
cookie = document.cookie,
95+
cLength = cookie.length,
9596
i = 0,
9697
j = 0;
9798

9899
while (i < cLength) {
99100
j = i + aLength;
100101

101-
if (document.cookie.substring(i, j) === arg) {
102+
if (cookie.substring(i, j) === arg) {
102103
return this.getCookieVal(j);
103104
}
104-
i = document.cookie.indexOf(' ', i) + 1;
105+
i = cookie.indexOf(' ', i) + 1;
105106

106107
if (i === 0) {
107108
break;
@@ -130,13 +131,14 @@
130131
* @return {String}
131132
*/
132133
this.getCookieVal = function (offset) {
133-
var endstr = document.cookie.indexOf(';', offset);
134+
var cookie = document.cookie,
135+
endstr = cookie.indexOf(';', offset);
134136

135137
if (endstr === -1) {
136-
endstr = document.cookie.length;
138+
endstr = cookie.length;
137139
}
138140

139-
return decodeURIComponent(document.cookie.substring(offset, endstr));
141+
return decodeURIComponent(cookie.substring(offset, endstr));
140142
};
141143

142144
return this;

lib/web/mage/requirejs/mixins.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ define('mixins', [
115115
*/
116116
getMixins: function (path) {
117117
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] || {};
119125

120126
return Object.keys(mixins).filter(function (mixin) {
121127
return mixins[mixin] !== false;

0 commit comments

Comments
 (0)