[-] MO : #PNM-73 : Mail alerts redirect url on logout corrected

This commit is contained in:
Francois Gaillard
2012-03-26 15:13:01 +00:00
parent 775b975982
commit 3a5a2c9bbe
3 changed files with 3 additions and 3 deletions
-1
View File
@@ -96,7 +96,6 @@ class MailAlert extends ObjectModel
$shop = Context::getContext()->shop;
$customer = new Customer($id_customer);
$customer_email = $customer->email;
$products = MailAlert::getProducts($customer, $id_lang);
$products_number = count($products);
@@ -42,7 +42,8 @@ class MailalertsAccountModuleFrontController extends ModuleFrontController
parent::initContent();
if (!Context::getContext()->customer->isLogged())
Tools::redirect('index.php?controller=auth&redirect=account&module=mailalerts&fc=module');
//Tools::redirect('index.php?controller=auth&redirect=account&module=mailalerts&fc=module');
Tools::redirect('index.php?controller=auth&redirect=module&module=mailalerts&action=account');
if (Context::getContext()->customer->id)
{
+1 -1
View File
@@ -49,6 +49,7 @@ class MailAlerts extends Module
$this->tab = 'administration';
$this->version = '2.4';
$this->author = 'PrestaShop';
$this->need_instance = 0;
parent::__construct();
@@ -286,7 +287,6 @@ class MailAlerts extends Module
foreach ($products as $key => $product)
{
$unit_price = $product['product_price_wt'];
$price = $product['total_price'];
$customization_text = '';
if (isset($customized_datas[$product['product_id']][$product['product_attribute_id']]))