[-] MO productcomments and loyalty: loyalty doesn't disconnect current user anymore

This commit is contained in:
Fabio Chelly
2013-09-25 14:43:30 +02:00
parent a1555c3fc8
commit bdd84771b7
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -85,7 +85,8 @@ class LoyaltyModule extends ObjectModel
$total = 0;
if (Validate::isLoadedObject($cart))
{
$context = Context::getContext();
$currentContext = Context::getContext();
$context = clone $currentContext;
$context->cart = $cart;
$context->customer = new Customer($context->cart->id_customer);
$context->language = new Language($context->cart->id_lang);