// replace $_POST by Tools::getValue

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12956 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-02-03 09:32:12 +00:00
parent 925600d623
commit 57a5260700
2 changed files with 10 additions and 5 deletions
+5 -3
View File
@@ -2361,15 +2361,17 @@ class AdminControllerCore extends Controller
return;
$assos = array();
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 (Tools::isSubmit('checkBox'.Tools::toCamelCase($type, true).'Asso_'.$table))
{
$check_box = Tools::getValue('checkBox'.Tools::toCamelCase($type, true).'Asso_'.$table);
foreach ($check_box as $id_asso_object => $row)
{
if (!(int)$id_asso_object)
$id_asso_object = $id_object;
foreach ($row as $id_shop => $value)
$assos[] = array('id_object' => (int)$id_asso_object, 'id_'.$type => (int)$id_shop);
}
}
return array($assos, $type);
}