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()
168
168
if (isset ($ categoryPostData ['use_config ' ]) && !empty ($ categoryPostData ['use_config ' ])) {
169
169
foreach ($ categoryPostData ['use_config ' ] as $ attributeCode => $ attributeValue ) {
170
170
if ($ attributeValue ) {
171
- $ useConfig [] = $ attributeValue ;
171
+ $ useConfig [] = $ attributeCode ;
172
172
$ category ->setData ($ attributeCode , null );
173
173
}
174
174
}
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Catalog \Ui \DataProvider \Product \Form ;
7
9
10
+ use Magento \Framework \Phrase ;
8
11
use Magento \Ui \DataProvider \AbstractDataProvider ;
9
12
use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory ;
10
13
use Magento \Framework \UrlInterface ;
@@ -47,7 +50,9 @@ public function __construct(
47
50
}
48
51
49
52
/**
50
- * {@inheritdoc}
53
+ * Get data
54
+ *
55
+ * @return array
51
56
* @since 101.0.0
52
57
*/
53
58
public function getData ()
@@ -60,7 +65,10 @@ public function getData()
60
65
'is_active ' => 1 ,
61
66
'include_in_menu ' => 1 ,
62
67
'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
+ ]
64
72
]
65
73
]
66
74
]
@@ -70,7 +78,9 @@ public function getData()
70
78
}
71
79
72
80
/**
73
- * {@inheritdoc}
81
+ * Get meta
82
+ *
83
+ * @return array
74
84
* @since 101.0.0
75
85
*/
76
86
public function getMeta ()
@@ -91,7 +101,7 @@ public function getMeta()
91
101
/**
92
102
* Get notice message
93
103
*
94
- * @return \Magento\Framework\ Phrase
104
+ * @return Phrase
95
105
* @since 101.0.0
96
106
*/
97
107
protected function getNotice ()
You can’t perform that action at this time.
0 commit comments