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()
259259 $ data ['backend_model ' ] = $ this ->productHelper ->getAttributeBackendModelByInputType (
260260 $ data ['frontend_input ' ]
261261 );
262+
263+ if ($ model ->getIsUserDefined () === null ) {
264+ $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
265+ }
262266 }
263267
264268 $ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
265269
266- if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
267- $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
268- }
269-
270270 $ defaultValueField = $ model ->getDefaultValueByInput ($ data ['frontend_input ' ]);
271271 if ($ defaultValueField ) {
272272 $ data ['default_value ' ] = $ this ->getRequest ()->getParam ($ defaultValueField );
You can’t perform that action at this time.
0 commit comments