We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8967c15 + 3bb920a commit 72397c0Copy full SHA for 72397c0
app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog/Save.php
@@ -60,6 +60,17 @@ public function execute()
60
['request' => $this->getRequest()]
61
);
62
$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();
74
$id = $this->getRequest()->getParam('rule_id');
75
if ($id) {
76
$model = $ruleRepository->get($id);
0 commit comments