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.
1 parent c7d6e57 commit cdc5a4aCopy full SHA for cdc5a4a
app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Generate.php
@@ -80,7 +80,7 @@ public function execute()
80
81
if (!$rule->getId()) {
82
$result['error'] = __('Rule is not defined');
83
- } elseif ($rule->getCouponType() != \Magento\SalesRule\Model\Rule::COUPON_TYPE_AUTO
+ } elseif ((int) $rule->getCouponType() !== \Magento\SalesRule\Model\Rule::COUPON_TYPE_AUTO
84
&& !$rule->getUseAutoGeneration()) {
85
$result['error'] =
86
__('Rule is not saved with auto generate option enabled. Please save the rule and try again.');
0 commit comments