Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 868fc1f

Browse files
MAGETWO-69470: Coupon with type 'Auto' can't be generated.
- fix static test errors
1 parent c03addf commit 868fc1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/SalesRule/Model/Service/CouponManagementService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ public function generate(\Magento\SalesRule\Api\Data\CouponGenerationSpecInterfa
8989
$couponSpec->getRuleId()
9090
);
9191
}
92-
if (
93-
!$rule->getUseAutoGeneration()
92+
if (!$rule->getUseAutoGeneration()
9493
&& $rule->getCouponType() != \Magento\SalesRule\Model\Rule::COUPON_TYPE_AUTO
9594
) {
9695
throw new \Magento\Framework\Exception\LocalizedException(

0 commit comments

Comments
 (0)