[-] BO : fixed #PSCFV-3005 - problems to create a shop for contact with multishop

This commit is contained in:
vAugagneur committed 2012-07-05 09:43:52 +00:00
1 parent 9fea40032e
commit 9a7eaf2bb1
1 file changed
+10
@@ -287,6 +287,15 @@ class AdminStoresControllerCore extends AdminController
) )
); );
if (Shop::isFeatureActive())
{
$this->fields_form['input'][] = array(
'type' => 'shop',
'label' => $this->l('Shop association:'),
'name' => 'checkBoxShopAsso',
);
}
if (!($obj = $this->loadObject(true))) if (!($obj = $this->loadObject(true)))
return; return;
@@ -324,6 +333,7 @@ class AdminStoresControllerCore extends AdminController
{ {
/* Cleaning fields */ /* Cleaning fields */
foreach ($_POST as $kp => $vp) foreach ($_POST as $kp => $vp)
if ($kp != '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 */