File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -259,14 +259,14 @@ public function execute()
259
259
$ data ['backend_model ' ] = $ this ->productHelper ->getAttributeBackendModelByInputType (
260
260
$ data ['frontend_input ' ]
261
261
);
262
+
263
+ if ($ model ->getIsUserDefined () === null ) {
264
+ $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
265
+ }
262
266
}
263
267
264
268
$ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
265
269
266
- if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
267
- $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
268
- }
269
-
270
270
$ defaultValueField = $ model ->getDefaultValueByInput ($ data ['frontend_input ' ]);
271
271
if ($ defaultValueField ) {
272
272
$ data ['default_value ' ] = $ this ->getRequest ()->getParam ($ defaultValueField );
You can’t perform that action at this time.
0 commit comments