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 @@ -230,14 +230,14 @@ public function execute()
230
230
$ data ['backend_model ' ] = $ this ->productHelper ->getAttributeBackendModelByInputType (
231
231
$ data ['frontend_input ' ]
232
232
);
233
+
234
+ if ($ model ->getIsUserDefined () === null ) {
235
+ $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
236
+ }
233
237
}
234
238
235
239
$ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
236
240
237
- if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
238
- $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
239
- }
240
-
241
241
$ defaultValueField = $ model ->getDefaultValueByInput ($ data ['frontend_input ' ]);
242
242
if ($ defaultValueField ) {
243
243
$ data ['default_value ' ] = $ this ->getRequest ()->getParam ($ defaultValueField );
You can’t perform that action at this time.
0 commit comments