File tree 1 file changed +4
-4
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -222,14 +222,14 @@ public function execute()
222
222
$ data ['backend_model ' ] = $ this ->productHelper ->getAttributeBackendModelByInputType (
223
223
$ data ['frontend_input ' ]
224
224
);
225
+
226
+ if ($ model ->getIsUserDefined () === null ) {
227
+ $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
228
+ }
225
229
}
226
230
227
231
$ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
228
232
229
- if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
230
- $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
231
- }
232
-
233
233
$ defaultValueField = $ model ->getDefaultValueByInput ($ data ['frontend_input ' ]);
234
234
if ($ defaultValueField ) {
235
235
$ data ['default_value ' ] = $ this ->getRequest ()->getParam ($ defaultValueField );
You can’t perform that action at this time.
0 commit comments