Skip to content

Commit 1e4e4e4

Browse files
Merge pull request #8633 from magento-cia/cia-2.4.7-beta3-develop-bugfix-11142023
AC-10160: Fix BICs introduced by AC-8753
2 parents f59f51e + a200bd7 commit 1e4e4e4

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote

1 file changed

+5
-2
lines changed

app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Generate.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ public function __construct(
101101
ObjectManager::getInstance()->get(
102102
GetCouponCodeLengthInterface::class
103103
);
104-
$this->scopeConfig = $scopeConfig;
104+
$this->scopeConfig = $scopeConfig ?:
105+
ObjectManager::getInstance()->get(
106+
ScopeConfigInterface::class
107+
);
105108
}
106109

107110
/**
@@ -110,7 +113,7 @@ public function __construct(
110113
* @return void
111114
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
112115
*/
113-
public function execute(): void
116+
public function execute()
114117
{
115118
if (!$this->getRequest()->isAjax()) {
116119
$this->_forward('noroute');

0 commit comments

Comments
 (0)