Skip to content

Commit a2bac04

Browse files
authored
Typo "customet_id" to "customer_id" fixed.
1 parent 3ff0161 commit a2bac04

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/SalesRule/Model/ResourceModel/Coupon

1 file changed

+2
-2
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Coupon/Usage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ public function loadByCustomerCoupon(\Magento\Framework\DataObject $object, $cus
7373
$select = $connection->select()->from(
7474
$this->getMainTable()
7575
)->where(
76-
'customer_id =:customet_id'
76+
'customer_id =:customer_id'
7777
)->where(
7878
'coupon_id = :coupon_id'
7979
);
80-
$data = $connection->fetchRow($select, [':coupon_id' => $couponId, ':customet_id' => $customerId]);
80+
$data = $connection->fetchRow($select, [':coupon_id' => $couponId, ':customer_id' => $customerId]);
8181
if ($data) {
8282
$object->setData($data);
8383
}

0 commit comments

Comments
 (0)