File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/SalesRule/Model/ResourceModel/Rule Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -233,12 +233,12 @@ private function getCouponCodeSelect($couponCode)
233
233
$ this ->_date ->date ()->format ('Y-m-d ' )
234
234
);
235
235
236
- $ isAutogeneratedCoupon =
236
+ $ isAutogenerated =
237
237
$ this ->getConnection ()->quoteInto ('main_table.coupon_type = ? ' , Rule::COUPON_TYPE_AUTO )
238
238
. ' AND ' .
239
239
$ this ->getConnection ()->quoteInto ('rule_coupons.type = ? ' , CouponInterface::TYPE_GENERATED );
240
240
241
- $ isValidSpecificCoupon =
241
+ $ isValidSpecific =
242
242
$ this ->getConnection ()->quoteInto ('(main_table.coupon_type = ?) ' , Rule::COUPON_TYPE_SPECIFIC )
243
243
. ' AND ( ' .
244
244
'(main_table.use_auto_generation = 1 AND rule_coupons.type = 1) '
@@ -247,7 +247,7 @@ private function getCouponCodeSelect($couponCode)
247
247
. ') ' ;
248
248
249
249
$ couponSelect ->where (
250
- "$ notExpired AND ( $ isAutogeneratedCoupon OR $ isValidSpecificCoupon ) " ,
250
+ "$ notExpired AND ( $ isAutogenerated OR $ isValidSpecific ) " ,
251
251
null ,
252
252
Select::TYPE_CONDITION
253
253
);
You can’t perform that action at this time.
0 commit comments