Skip to content

Commit

Permalink
[-] MO productcomments and loyalty: loyalty doesn't disconnect curren…
Browse files Browse the repository at this point in the history
…t user anymore
  • Loading branch information
fchellypresta committed Sep 25, 2013
1 parent a1555c3 commit bdd8477
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/loyalty/LoyaltyModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public static function getCartNbPoints($cart, $newProduct = NULL)
$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);
Expand Down
5 changes: 5 additions & 0 deletions modules/productcomments/productcomments.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ var productcomments_controller_url = '{$productcomments_controller_url}';
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
var secure_key = "{$secure_key}";
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
var productcomment_added = '{l s='Your comment has been added!' mod='productcomments'}';
var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}';
var productcomment_title = '{l s='New comment' mod='productcomments'}';
var productcomment_ok = '{l s='OK' mod='productcomments'}';
var moderation_active = {$moderation_active};
</script>

<div id="idTab5">
Expand Down

1 comment on commit bdd8477

@fchellypresta
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't reproduce the bug since my last commit. What happens when you disable loyalty module?

Please sign in to comment.