Skip to content

Commit 763fd6f

Browse files
author
Joan He
committed
Merge remote-tracking branch 'upstream/2.2.10-develop' into MC-18478
2 parents 9fcaa74 + 6dd7508 commit 763fd6f

File tree

6 files changed

+28
-43
lines changed

6 files changed

+28
-43
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AttributeSet.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ public function getOptions()
7878
\Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection::SORT_ORDER_ASC
7979
);
8080

81-
return $collection->getData();
81+
$collectionData = $collection->getData() ?? [];
82+
83+
array_walk($collectionData, function (&$attribute) {
84+
$attribute['__disableTmpl'] = true;
85+
});
86+
87+
return $collectionData;
8288
}
8389

8490
/**

app/code/Magento/Ui/view/base/web/js/grid/editing/record.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ define([
134134

135135
field = utils.extend({}, fields.base, field);
136136

137-
field.__disableTmpl = {
138-
label: true,
139-
options: true
140-
};
141-
142137
return utils.template(field, {
143138
record: this,
144139
column: column

composer.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"phpseclib/mcrypt_compat": "1.0.8",
5555
"phpseclib/phpseclib": "2.0.*",
5656
"tedivm/jshrink": "~1.3.0",
57-
"magento/composer": "1.2.x-dev as 1.2.1",
57+
"magento/composer": "~1.2.0",
5858
"lib-libxml": "*",
5959
"ext-ctype": "*",
6060
"ext-gd": "*",
@@ -273,12 +273,5 @@
273273
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
274274
}
275275
},
276-
"prefer-stable": true,
277-
"minimum-stability": "dev",
278-
"repositories": {
279-
"magento.composer": {
280-
"type": "vcs",
281-
"url": "https://github.com/magento/composer.git"
282-
}
283-
}
276+
"minimum-stability": "stable"
284277
}

composer.lock

Lines changed: 11 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/internal/Magento/Framework/Filter/Template.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ class Template implements \Zend_Filter_Interface
7272
'getdatausingmethod',
7373
'__destruct',
7474
'__call',
75-
'__callStatic',
75+
'__callstatic',
7676
'__set',
7777
'__unset',
7878
'__sleep',
7979
'__wakeup',
8080
'__invoke',
8181
'__set_state',
82-
'__debugInfo',
83-
'___callParent',
84-
'___callPlugins'
82+
'__debuginfo',
83+
'___callparent',
84+
'___callplugins'
8585
];
8686

8787
/**

lib/web/mage/utils/template.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ define([
4040
* To limit recursion for a specific property add __disableTmpl: {propertyName: numberOfCycles}.
4141
*
4242
* @param {String} tmpl
43-
* @param {Object} target
43+
* @param {Object|undefined} target
4444
* @returns {Boolean|Object}
4545
*/
4646
function isTmplIgnored(tmpl, target) {
@@ -131,7 +131,9 @@ define([
131131
cycles = 0;
132132

133133
while (~tmpl.indexOf(opener) && (typeof maxCycles === 'undefined' || cycles < maxCycles)) {
134-
tmpl = template(tmpl, data);
134+
if (!isTmplIgnored(tmpl)) {
135+
tmpl = template(tmpl, data);
136+
}
135137

136138
if (tmpl === last) {
137139
break;

0 commit comments

Comments
 (0)