[*] BO : Required fields improved (with a white list)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11276 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -31,6 +31,8 @@ class AdminCustomersControllerCore extends AdminController
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->required_database = true;
|
||||
$this->required_fields = array('newsletter','optin');
|
||||
$this->table = 'customer';
|
||||
$this->className = 'Customer';
|
||||
$this->lang = false;
|
||||
@@ -157,6 +159,7 @@ class AdminCustomersControllerCore extends AdminController
|
||||
'url_delete' => htmlentities($_SERVER['REQUEST_URI']),
|
||||
'boxes' => $this->boxes,
|
||||
));
|
||||
|
||||
parent::initContent();
|
||||
}
|
||||
|
||||
@@ -736,7 +739,6 @@ class AdminCustomersControllerCore extends AdminController
|
||||
'.($customer->optin ? '<img src="../img/admin/enabled.gif" />' : '<img src="../img/admin/disabled.gif" />').
|
||||
'</a>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user