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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16229 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-07-05 09:43:52 +00:00
parent be6d51c91f
commit bd3b4657f4
+13 -3
View File
@@ -286,6 +286,15 @@ class AdminStoresControllerCore extends AdminController
'class' => 'button'
)
);
if (Shop::isFeatureActive())
{
$this->fields_form['input'][] = array(
'type' => 'shop',
'label' => $this->l('Shop association:'),
'name' => 'checkBoxShopAsso',
);
}
if (!($obj = $this->loadObject(true)))
return;
@@ -324,7 +333,8 @@ class AdminStoresControllerCore extends AdminController
{
/* Cleaning fields */
foreach ($_POST as $kp => $vp)
$_POST[$kp] = trim($vp);
if ($kp != 'checkBoxShopAsso_store')
$_POST[$kp] = trim($vp);
/* If the selected country does not contain states */
$id_state = (int)Tools::getValue('id_state');
@@ -387,8 +397,8 @@ class AdminStoresControllerCore extends AdminController
if (!count($this->errors))
parent::postProcess();
else
$this->display = 'add';
else
$this->display = 'add';
}
protected function postImage($id)