[-] BO : fixed bug adminStores when enable multistory crash on save store

This commit is contained in:
vAugagneur committed 2012-10-30 10:28:16 +00:00
1 parent fe42d0f0fe
commit b5dc797e04
1 file changed
+1 -2
+1 -2
View File
@@ -191,7 +191,6 @@ class AdminStoresControllerCore extends AdminController
'label' => $this->l('City'), 'label' => $this->l('City'),
'name' => 'city', 'name' => 'city',
'size' => 33, 'size' => 33,
'class' => 'uppercase',
'required' => true 'required' => true
), ),
array( array(
@@ -332,7 +331,7 @@ class AdminStoresControllerCore extends AdminController
{ {
/* Cleaning fields */ /* Cleaning fields */
foreach ($_POST as $kp => $vp) foreach ($_POST as $kp => $vp)
if ($kp != 'checkBoxShopAsso_store') if (!in_array($kp, array('checkBoxShopGroupAsso_store', 'checkBoxShopAsso_store')))
$_POST[$kp] = trim($vp); $_POST[$kp] = trim($vp);
/* If the selected country does not contain states */ /* If the selected country does not contain states */