File tree Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Expand file tree Collapse file tree 4 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -168,20 +168,19 @@ protected function getFieldConfig(
168
168
169
169
$ element = [
170
170
'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
+ ),
185
184
'dataScope ' => $ dataScopePrefix . '. ' . $ attributeCode ,
186
185
'label ' => $ attributeConfig ['label ' ],
187
186
'provider ' => $ providerName ,
Original file line number Diff line number Diff line change 18
18
<item name =" standard" xsi : type =" array" >
19
19
<item name =" class" xsi : type =" string" >Magento\Framework\App\Router\Base</item >
20
20
<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 >
22
22
</item >
23
23
<item name =" default" xsi : type =" array" >
24
24
<item name =" class" xsi : type =" string" >Magento\Framework\App\Router\DefaultRouter</item >
Original file line number Diff line number Diff line change 12
12
<item name =" urlrewrite" xsi : type =" array" >
13
13
<item name =" class" xsi : type =" string" >Magento\UrlRewrite\Controller\Router</item >
14
14
<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 >
16
16
</item >
17
17
</argument >
18
18
</arguments >
Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ define([
76
76
* @returns {Boolean }
77
77
*/
78
78
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 ;
80
84
}
81
85
82
86
/**
You can’t perform that action at this time.
0 commit comments