Skip to content

Commit 6d7daa4

Browse files
committed
MC-19873: [Sample Data Function Test] Sample data test failed with Incorrect final price
1 parent 35f317b commit 6d7daa4

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/CatalogRule/Controller/Adminhtml/Promo/Catalog

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,15 @@ public function __construct(
5555
*
5656
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface|void
5757
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
58+
* @SuppressWarnings(PHPMD.NPathComplexity)
5859
*/
5960
public function execute()
6061
{
6162
if ($this->getRequest()->getPostValue()) {
62-
6363
/** @var \Magento\CatalogRule\Api\CatalogRuleRepositoryInterface $ruleRepository */
6464
$ruleRepository = $this->_objectManager->get(
6565
\Magento\CatalogRule\Api\CatalogRuleRepositoryInterface::class
6666
);
67-
6867
/** @var \Magento\CatalogRule\Model\Rule $model */
6968
$model = $this->_objectManager->create(\Magento\CatalogRule\Model\Rule::class);
7069

@@ -74,7 +73,6 @@ public function execute()
7473
['request' => $this->getRequest()]
7574
);
7675
$data = $this->getRequest()->getPostValue();
77-
7876
if (!$this->getRequest()->getParam('from_date')) {
7977
$data['from_date'] = $this->localeDate->formatDate();
8078
}

0 commit comments

Comments
 (0)