[-] BO : User id for Newsletter & Opt-in subscripion corrected

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12825 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fGaillard
2012-01-31 08:44:20 +00:00
parent f567b36d0f
commit db71e56b85
@@ -830,19 +830,19 @@ class AdminCustomersControllerCore extends AdminController
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='
.(int)$id_customer.'&changeNewsletterVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
'.($tr['newsletter'] ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
.(int)$customer['id_customer'].'&changeNewsletterVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
'.($value ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
'</a>';
}
public static function printOptinIcon($id_customer, $tr)
public static function printOptinIcon($value, $customer)
{
return '<a href="index.php?tab=AdminCustomers&id_customer='
.$id_customer.'&changeOptinVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
'.($tr['optin'] ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
.(int)$customer['id_customer'].'&changeOptinVal&token='.Tools::getAdminTokenLite('AdminCustomers').'">
'.($value ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
'</a>';
}