From 17ad1ed6fa5af3923fe1a15abd825963fd4df344 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 17 Jun 2014 00:35:52 +0200 Subject: [PATCH] The CouponManager clear() method is now invoked. --- core/lib/Thelia/Action/Coupon.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/lib/Thelia/Action/Coupon.php b/core/lib/Thelia/Action/Coupon.php index 2c8fa9b01..4dc708394 100644 --- a/core/lib/Thelia/Action/Coupon.php +++ b/core/lib/Thelia/Action/Coupon.php @@ -114,6 +114,9 @@ class Coupon extends BaseAction implements EventSubscriberInterface */ public function clearAllCoupons() { + // Tell coupons to clear any data they may have stored + $this->couponManager->clear(); + $this->request->getSession()->setConsumedCoupons(array()); } @@ -348,7 +351,7 @@ class Coupon extends BaseAction implements EventSubscriberInterface } } - // Clear all coupouns. + // Clear all coupons. $event->getDispatcher()->dispatch(TheliaEvents::COUPON_CLEAR_ALL); }