[*] BO : Required fields improved (with a white list)

This commit is contained in:
vChabot
2011-12-15 16:37:08 +00:00
parent 89bcdf47e4
commit 6cd181c40c
5 changed files with 127 additions and 5 deletions
@@ -32,6 +32,8 @@ class AdminAddressesControllerCore extends AdminController
public function __construct()
{
$this->required_database = true;
$this->required_fields = array('company','address2', 'postcode', 'other', 'phone', 'phone_mobile', 'vat_number', 'dni');
$this->table = 'address';
$this->className = 'Address';
$this->lang = false;