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 @@ -222,14 +222,14 @@ public function execute()
222222 $ data ['backend_model ' ] = $ this ->productHelper ->getAttributeBackendModelByInputType (
223223 $ data ['frontend_input ' ]
224224 );
225+
226+ if ($ model ->getIsUserDefined () === null ) {
227+ $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
228+ }
225229 }
226230
227231 $ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
228232
229- if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
230- $ data ['backend_type ' ] = $ model ->getBackendTypeByInput ($ data ['frontend_input ' ]);
231- }
232-
233233 $ defaultValueField = $ model ->getDefaultValueByInput ($ data ['frontend_input ' ]);
234234 if ($ defaultValueField ) {
235235 $ data ['default_value ' ] = $ this ->getRequest ()->getParam ($ defaultValueField );
You can’t perform that action at this time.
0 commit comments