File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,6 @@ public function execute()
200
200
}
201
201
}
202
202
203
- $ data = $ this ->presentation ->convertPresentationDataToInputType ($ data );
204
-
205
203
if ($ attributeId ) {
206
204
if (!$ model ->getId ()) {
207
205
$ this ->messageManager ->addErrorMessage (__ ('This attribute no longer exists. ' ));
@@ -216,6 +214,7 @@ public function execute()
216
214
217
215
$ data ['attribute_code ' ] = $ model ->getAttributeCode ();
218
216
$ data ['is_user_defined ' ] = $ model ->getIsUserDefined ();
217
+ $ data ['frontend_input ' ] = $ model ->getFrontendInput ();
219
218
} else {
220
219
/**
221
220
* @todo add to helper and specify all relations for properties
@@ -228,6 +227,8 @@ public function execute()
228
227
);
229
228
}
230
229
230
+ $ data = $ this ->presentation ->convertPresentationDataToInputType ($ data );
231
+
231
232
$ data += ['is_filterable ' => 0 , 'is_filterable_in_search ' => 0 ];
232
233
233
234
if ($ model ->getIsUserDefined () === null || $ model ->getIsUserDefined () != 0 ) {
You can’t perform that action at this time.
0 commit comments