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()
230230 $ data ['backend_model ' ] = $ this ->productHelper ->getAttributeBackendModelByInputType (
231231 $ data ['frontend_input ' ]
232232 );
233+
234+ if ($ model ->getIsUserDefined () === null ) {
235+ $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
236+ }
233237 }
234238
235239 $ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
236240
237- if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
238- $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
239- }
240-
241241 $ defaultValueField = $ model ->getDefaultValueByInput ($ data ['frontend_input ' ]);
242242 if ($ defaultValueField ) {
243243 $ data ['default_value ' ] = $ this ->getRequest ()->getParam ($ defaultValueField );
You can’t perform that action at this time.
0 commit comments