Skip to content

Commit 40c4fac

Browse files
committed
MC-13827: Failed funtional test Magento\FunctionalTestingFramework.functional.StorefrontSortingByPriceForConfigurableProductWithCatalogRuleAppliedTest
1 parent 4ba06ff commit 40c4fac

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
@@ -50,16 +50,15 @@ public function __construct(
5050
/**
5151
* @return void
5252
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
53+
* @SuppressWarnings(PHPMD.NPathComplexity)
5354
*/
5455
public function execute()
5556
{
5657
if ($this->getRequest()->getPostValue()) {
57-
5858
/** @var \Magento\CatalogRule\Api\CatalogRuleRepositoryInterface $ruleRepository */
5959
$ruleRepository = $this->_objectManager->get(
6060
\Magento\CatalogRule\Api\CatalogRuleRepositoryInterface::class
6161
);
62-
6362
/** @var \Magento\CatalogRule\Model\Rule $model */
6463
$model = $this->_objectManager->create(\Magento\CatalogRule\Model\Rule::class);
6564

@@ -69,7 +68,6 @@ public function execute()
6968
['request' => $this->getRequest()]
7069
);
7170
$data = $this->getRequest()->getPostValue();
72-
7371
if (!$this->getRequest()->getParam('from_date')) {
7472
$data['from_date'] = $this->localeDate->formatDate();
7573
}

0 commit comments

Comments
 (0)