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 763e8e5 + ffdb8c0 commit 05fe43dCopy full SHA for 05fe43d
app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Save.php
@@ -61,15 +61,15 @@ public function __construct(
61
*/
62
public function execute()
63
{
64
- if ($this->getRequest()->getPostValue()) {
+ $data = $this->getRequest()->getPostValue();
65
+ if ($data) {
66
try {
67
/** @var $model \Magento\SalesRule\Model\Rule */
68
$model = $this->_objectManager->create(\Magento\SalesRule\Model\Rule::class);
69
$this->_eventManager->dispatch(
70
'adminhtml_controller_salesrule_prepare_save',
71
['request' => $this->getRequest()]
72
);
- $data = $this->getRequest()->getPostValue();
73
if (empty($data['from_date'])) {
74
$data['from_date'] = $this->timezone->formatDate();
75
}
0 commit comments