File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -55,16 +55,15 @@ public function __construct(
55
55
*
56
56
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface|void
57
57
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
58
+ * @SuppressWarnings(PHPMD.NPathComplexity)
58
59
*/
59
60
public function execute ()
60
61
{
61
62
if ($ this ->getRequest ()->getPostValue ()) {
62
-
63
63
/** @var \Magento\CatalogRule\Api\CatalogRuleRepositoryInterface $ruleRepository */
64
64
$ ruleRepository = $ this ->_objectManager ->get (
65
65
\Magento \CatalogRule \Api \CatalogRuleRepositoryInterface::class
66
66
);
67
-
68
67
/** @var \Magento\CatalogRule\Model\Rule $model */
69
68
$ model = $ this ->_objectManager ->create (\Magento \CatalogRule \Model \Rule::class);
70
69
@@ -74,7 +73,6 @@ public function execute()
74
73
['request ' => $ this ->getRequest ()]
75
74
);
76
75
$ data = $ this ->getRequest ()->getPostValue ();
77
-
78
76
if (!$ this ->getRequest ()->getParam ('from_date ' )) {
79
77
$ data ['from_date ' ] = $ this ->localeDate ->formatDate ();
80
78
}
You can’t perform that action at this time.
0 commit comments