// Fix guest-tracking links

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17127 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-08-31 12:22:47 +00:00
parent 91d66ffb53
commit 784865bf4d
4 changed files with 17 additions and 7 deletions
+2 -1
View File
@@ -171,9 +171,10 @@ class OrderControllerCore extends ParentOrderController
{
if ($this->context->customer->is_guest)
{
$order = new Order((int)$id_order);
$email = $this->context->customer->email;
$this->context->customer->mylogout(); // If guest we clear the cookie for security reason
Tools::redirect('index.php?controller=guest-tracking&id_order='.(int)$id_order.'&email='.urlencode($email));
Tools::redirect('index.php?controller=guest-tracking&id_order='.(int)$order->reference.'&email='.urlencode($email);
}
else
Tools::redirect('index.php?controller=history');