File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/code/Magento/Customer/Model Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,12 @@ public function getAttributesMeta(
113
113
// use getDataUsingMethod, since some getters are defined and apply additional processing of returning value
114
114
foreach (self ::$ metaProperties as $ metaName => $ origName ) {
115
115
$ value = $ attribute ->getDataUsingMethod ($ origName );
116
- $ meta ['arguments ' ]['data ' ]['config ' ][$ metaName ] = ($ metaName === 'label ' ) ? __ ($ value ) : $ value ;
116
+ if ($ metaName === 'label ' ) {
117
+ $ meta ['arguments ' ]['data ' ]['config ' ][$ metaName ] = __ ($ value );
118
+ $ meta ['arguments ' ]['data ' ]['config ' ]['__disableTmpl ' ] = [$ metaName => true ];
119
+ } else {
120
+ $ meta ['arguments ' ]['data ' ]['config ' ][$ metaName ] = $ value ;
121
+ }
117
122
if ('frontend_input ' === $ origName ) {
118
123
$ meta ['arguments ' ]['data ' ]['config ' ]['formElement ' ] = self ::$ formElement [$ value ] ?? $ value ;
119
124
}
@@ -144,7 +149,6 @@ public function getAttributesMeta(
144
149
$ attribute ,
145
150
$ meta ['arguments ' ]['data ' ]['config ' ]
146
151
);
147
-
148
152
return $ meta ;
149
153
}
150
154
You can’t perform that action at this time.
0 commit comments