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.
1 parent 20f1162 commit 8f36157Copy full SHA for 8f36157
app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog/Save.php
@@ -61,6 +61,17 @@ public function execute()
61
['request' => $this->getRequest()]
62
);
63
$data = $this->getRequest()->getPostValue();
64
+
65
+ $filterValues = ['from_date' => $this->_dateFilter];
66
+ if ($this->getRequest()->getParam('to_date')) {
67
+ $filterValues['to_date'] = $this->_dateFilter;
68
+ }
69
+ $inputFilter = new \Zend_Filter_Input(
70
+ $filterValues,
71
+ [],
72
+ $data
73
+ );
74
+ $data = $inputFilter->getUnescaped();
75
$id = $this->getRequest()->getParam('rule_id');
76
if ($id) {
77
$model = $ruleRepository->get($id);
0 commit comments