[-] BO : User id for Newsletter & Opt-in subscripion corrected
This commit is contained in:
@@ -830,19 +830,19 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token);
|
Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function printNewsIcon($id_customer, $tr)
|
public static function printNewsIcon($value, $customer)
|
||||||
{
|
{
|
||||||
return '<a href="index.php?tab=AdminCustomers&id_customer='
|
return '<a href="index.php?tab=AdminCustomers&id_customer='
|
||||||
.(int)$id_customer.'&changeNewsletterVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
|
.(int)$customer['id_customer'].'&changeNewsletterVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
|
||||||
'.($tr['newsletter'] ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
|
'.($value ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
|
||||||
'</a>';
|
'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function printOptinIcon($id_customer, $tr)
|
public static function printOptinIcon($value, $customer)
|
||||||
{
|
{
|
||||||
return '<a href="index.php?tab=AdminCustomers&id_customer='
|
return '<a href="index.php?tab=AdminCustomers&id_customer='
|
||||||
.$id_customer.'&changeOptinVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
|
.(int)$customer['id_customer'].'&changeOptinVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
|
||||||
'.($tr['optin'] ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
|
'.($value ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
|
||||||
'</a>';
|
'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user