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)
253253 //Dynamic UI component data should not contain templates.
254254 $ config = $ this ->sanitizer ->sanitize (array_merge ($ dataSource , $ dataProviderConfig ));
255255
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+ }
256265 return [
257266 $ this ->getDataProvider ()->getName () => [
258267 'type ' => 'dataSource ' ,
@@ -261,9 +270,7 @@ public function getDataSourceData(UiComponentInterface $component)
261270 'config ' => array_replace_recursive (
262271 $ config ,
263272 [
264- 'params ' => [
265- 'namespace ' => $ this ->getNamespace ()
266- ],
273+ 'params ' => $ params ,
267274 ]
268275 )
269276 ]
You can’t perform that action at this time.
0 commit comments