// Fix multi shop
This commit is contained in:
@@ -2302,13 +2302,14 @@ class AdminControllerCore extends Controller
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
$assos = array();
|
$assos = array();
|
||||||
foreach ($_POST['checkBox'.Tools::toCamelCase($type, true).'Asso_'.$table] as $id_asso_object => $row)
|
if (isset($_POST['checkBox'.Tools::toCamelCase($type, true).'Asso_'.$table]))
|
||||||
{
|
foreach ($_POST['checkBox'.Tools::toCamelCase($type, true).'Asso_'.$table] as $id_asso_object => $row)
|
||||||
if (!(int)$id_asso_object)
|
{
|
||||||
$id_asso_object = $id_object;
|
if (!(int)$id_asso_object)
|
||||||
foreach ($row as $id_shop => $value)
|
$id_asso_object = $id_object;
|
||||||
$assos[] = array('id_object' => (int)$id_asso_object, 'id_'.$type => (int)$id_shop);
|
foreach ($row as $id_shop => $value)
|
||||||
}
|
$assos[] = array('id_object' => (int)$id_asso_object, 'id_'.$type => (int)$id_shop);
|
||||||
|
}
|
||||||
return array($assos, $type);
|
return array($assos, $type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user