File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Controller/Adminhtml/Category
Ui/DataProvider/Product/Form Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public function execute()
168168 if (isset ($ categoryPostData ['use_config ' ]) && !empty ($ categoryPostData ['use_config ' ])) {
169169 foreach ($ categoryPostData ['use_config ' ] as $ attributeCode => $ attributeValue ) {
170170 if ($ attributeValue ) {
171- $ useConfig [] = $ attributeValue ;
171+ $ useConfig [] = $ attributeCode ;
172172 $ category ->setData ($ attributeCode , null );
173173 }
174174 }
Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Catalog \Ui \DataProvider \Product \Form ;
79
10+ use Magento \Framework \Phrase ;
811use Magento \Ui \DataProvider \AbstractDataProvider ;
912use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
1013use Magento \Framework \UrlInterface ;
@@ -47,7 +50,9 @@ public function __construct(
4750 }
4851
4952 /**
50- * {@inheritdoc}
53+ * Get data
54+ *
55+ * @return array
5156 * @since 101.0.0
5257 */
5358 public function getData ()
@@ -60,7 +65,10 @@ public function getData()
6065 'is_active ' => 1 ,
6166 'include_in_menu ' => 1 ,
6267 'return_session_messages_only ' => 1 ,
63- 'use_config ' => ['available_sort_by ' , 'default_sort_by ' ]
68+ 'use_config ' => [
69+ 'available_sort_by ' => true ,
70+ 'default_sort_by ' => true
71+ ]
6472 ]
6573 ]
6674 ]
@@ -70,7 +78,9 @@ public function getData()
7078 }
7179
7280 /**
73- * {@inheritdoc}
81+ * Get meta
82+ *
83+ * @return array
7484 * @since 101.0.0
7585 */
7686 public function getMeta ()
@@ -91,7 +101,7 @@ public function getMeta()
91101 /**
92102 * Get notice message
93103 *
94- * @return \Magento\Framework\ Phrase
104+ * @return Phrase
95105 * @since 101.0.0
96106 */
97107 protected function getNotice ()
You can’t perform that action at this time.
0 commit comments