Skip to content

Commit e7c5bb5

Browse files
authored
Merge pull request #1600 from magento-engcom/develop-prs
[EngCom] Public Pull Requests - develop
2 parents 0c846b5 + 60ee509 commit e7c5bb5

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,19 @@ protected function getFieldConfig(
168168

169169
$element = [
170170
'component' => isset($additionalConfig['component']) ? $additionalConfig['component'] : $uiComponent,
171-
'config' => [
172-
// customScope is used to group elements within a single form (e.g. they can be validated separately)
173-
'customScope' => $dataScopePrefix,
174-
'customEntry' => isset($additionalConfig['config']['customEntry'])
175-
? $additionalConfig['config']['customEntry']
176-
: null,
177-
'template' => 'ui/form/field',
178-
'elementTmpl' => isset($additionalConfig['config']['elementTmpl'])
179-
? $additionalConfig['config']['elementTmpl']
180-
: $elementTemplate,
181-
'tooltip' => isset($additionalConfig['config']['tooltip'])
182-
? $additionalConfig['config']['tooltip']
183-
: null
184-
],
171+
'config' => $this->mergeConfigurationNode(
172+
'config',
173+
$additionalConfig,
174+
[
175+
'config' => [
176+
// customScope is used to group elements within a single
177+
// form (e.g. they can be validated separately)
178+
'customScope' => $dataScopePrefix,
179+
'template' => 'ui/form/field',
180+
'elementTmpl' => $elementTemplate,
181+
],
182+
]
183+
),
185184
'dataScope' => $dataScopePrefix . '.' . $attributeCode,
186185
'label' => $attributeConfig['label'],
187186
'provider' => $providerName,

app/code/Magento/Store/etc/frontend/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<item name="standard" xsi:type="array">
1919
<item name="class" xsi:type="string">Magento\Framework\App\Router\Base</item>
2020
<item name="disable" xsi:type="boolean">false</item>
21-
<item name="sortOrder" xsi:type="string">20</item>
21+
<item name="sortOrder" xsi:type="string">30</item>
2222
</item>
2323
<item name="default" xsi:type="array">
2424
<item name="class" xsi:type="string">Magento\Framework\App\Router\DefaultRouter</item>

app/code/Magento/UrlRewrite/etc/frontend/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<item name="urlrewrite" xsi:type="array">
1313
<item name="class" xsi:type="string">Magento\UrlRewrite\Controller\Router</item>
1414
<item name="disable" xsi:type="boolean">false</item>
15-
<item name="sortOrder" xsi:type="string">40</item>
15+
<item name="sortOrder" xsi:type="string">20</item>
1616
</item>
1717
</argument>
1818
</arguments>

lib/web/mage/utils/template.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ define([
7676
* @returns {Boolean}
7777
*/
7878
function isTemplate(value) {
79-
return typeof value === 'string' && ~value.indexOf(opener);
79+
return typeof value === 'string' &&
80+
value.indexOf(opener) !== -1 &&
81+
// the below pattern almost always indicates an accident which should not cause template evaluation
82+
// refuse to evaluate
83+
value.indexOf('${{') === -1;
8084
}
8185

8286
/**

0 commit comments

Comments
 (0)