Skip to content

Commit 72397c0

Browse files
author
Stanislav Idolov
authored
ENGCOM-3396: [Backport] Fix for #12399: Exception Error in Catalog Price Rule while Backend language is not English #19074
2 parents 8967c15 + 3bb920a commit 72397c0

File tree

1 file changed

+11
-0
lines changed
  • app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog

1 file changed

+11
-0
lines changed

app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog/Save.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ public function execute()
6060
['request' => $this->getRequest()]
6161
);
6262
$data = $this->getRequest()->getPostValue();
63+
64+
$filterValues = ['from_date' => $this->_dateFilter];
65+
if ($this->getRequest()->getParam('to_date')) {
66+
$filterValues['to_date'] = $this->_dateFilter;
67+
}
68+
$inputFilter = new \Zend_Filter_Input(
69+
$filterValues,
70+
[],
71+
$data
72+
);
73+
$data = $inputFilter->getUnescaped();
6374
$id = $this->getRequest()->getParam('rule_id');
6475
if ($id) {
6576
$model = $ruleRepository->get($id);

0 commit comments

Comments
 (0)