File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
app/code/Magento/Cms/Model/Page Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,6 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
35
35
*/
36
36
private $ authorization ;
37
37
38
- /**
39
- * @var array
40
- */
41
- protected $ designFieldSets = [
42
- 'design ' ,
43
- 'custom_design_update ' ,
44
- ];
45
-
46
38
/**
47
39
* @param string $name
48
40
* @param string $primaryFieldName
@@ -117,7 +109,9 @@ public function getMeta()
117
109
118
110
if (!$ this ->authorization ->isAllowed ('Magento_Cms::save_design ' )) {
119
111
$ designMeta = [];
120
- foreach ($ this ->designFieldSets as $ fieldSet ) {
112
+ $ designFieldSets = ['design ' , 'custom_design_update ' ];
113
+
114
+ foreach ($ designFieldSets as $ fieldSet ) {
121
115
$ designMeta [$ fieldSet ] = [
122
116
'arguments ' => [
123
117
'data ' => [
@@ -128,6 +122,7 @@ public function getMeta()
128
122
],
129
123
];
130
124
}
125
+
131
126
$ meta = array_merge_recursive ($ meta , $ designMeta );
132
127
}
133
128
You can’t perform that action at this time.
0 commit comments