File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,20 @@ public function getOptions()
78
78
\Magento \Eav \Model \ResourceModel \Entity \Attribute \Set \Collection::SORT_ORDER_ASC
79
79
);
80
80
81
- return $ collection ->getData ();
81
+ $ collectionData = $ collection ->getData () ?? [];
82
+
83
+ array_walk (
84
+ $ collectionData ,
85
+ function (&$ attribute ) {
86
+ $ attribute ['__disableTmpl ' ] = true ;
87
+ }
88
+ );
89
+
90
+ return $ collectionData ;
82
91
}
83
92
84
93
/**
85
- * { @inheritdoc}
94
+ * @inheritdoc
86
95
* @since 101.0.0
87
96
*/
88
97
public function modifyMeta (array $ meta )
@@ -116,17 +125,20 @@ public function modifyMeta(array $meta)
116
125
}
117
126
118
127
/**
119
- * { @inheritdoc}
128
+ * @inheritdoc
120
129
* @since 101.0.0
121
130
*/
122
131
public function modifyData (array $ data )
123
132
{
124
- return array_replace_recursive ($ data , [
125
- $ this ->locator ->getProduct ()->getId () => [
126
- self ::DATA_SOURCE_DEFAULT => [
127
- 'attribute_set_id ' => $ this ->locator ->getProduct ()->getAttributeSetId ()
128
- ],
133
+ return array_replace_recursive (
134
+ $ data ,
135
+ [
136
+ $ this ->locator ->getProduct ()->getId () => [
137
+ self ::DATA_SOURCE_DEFAULT => [
138
+ 'attribute_set_id ' => $ this ->locator ->getProduct ()->getAttributeSetId ()
139
+ ],
140
+ ]
129
141
]
130
- ] );
142
+ );
131
143
}
132
144
}
You can’t perform that action at this time.
0 commit comments