Skip to content

Commit 25a2745

Browse files
author
Anna Bukatar
committed
ACP2E-1258: Schedule updates for Cart Price Rules create duplicate schedules
1 parent 6057eb8 commit 25a2745

File tree

1 file changed

+10
-3
lines changed
  • lib/internal/Magento/Framework/View/Element/UiComponent

1 file changed

+10
-3
lines changed

lib/internal/Magento/Framework/View/Element/UiComponent/Context.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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
]

0 commit comments

Comments
 (0)