File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
lib/internal/Magento/Framework/View/Element/UiComponent Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,15 @@ public function getDataSourceData(UiComponentInterface $component)
253
253
//Dynamic UI component data should not contain templates.
254
254
$ config = $ this ->sanitizer ->sanitize (array_merge ($ dataSource , $ dataProviderConfig ));
255
255
256
+ $ params = [
257
+ 'namespace ' => $ this ->getNamespace ()
258
+ ];
259
+
260
+ $ providerRequestFieldName = $ this ->getDataProvider ()->getRequestFieldName ();
261
+ $ providerRequestFieldValue = $ this ->request ->getParam ($ providerRequestFieldName );
262
+ if ($ providerRequestFieldValue ) {
263
+ $ params [$ providerRequestFieldName ] = $ providerRequestFieldValue ;
264
+ }
256
265
return [
257
266
$ this ->getDataProvider ()->getName () => [
258
267
'type ' => 'dataSource ' ,
@@ -261,9 +270,7 @@ public function getDataSourceData(UiComponentInterface $component)
261
270
'config ' => array_replace_recursive (
262
271
$ config ,
263
272
[
264
- 'params ' => [
265
- 'namespace ' => $ this ->getNamespace ()
266
- ],
273
+ 'params ' => $ params ,
267
274
]
268
275
)
269
276
]
You can’t perform that action at this time.
0 commit comments