[-] MO : #PSCFV-2640 - Fix bug with blocklayered and multishop

This commit is contained in:
mDeflotte
2012-06-04 09:41:18 +00:00
parent 199b995b24
commit 89ea28bc21
+3 -6
View File
@@ -1413,13 +1413,10 @@ class BlockLayered extends Module
$shop_list = array(); $shop_list = array();
if (isset($_POST['checkBoxShopAsso_layered_filter'])) if (isset($_POST['checkBoxShopAsso_layered_filter']))
{ {
foreach ($_POST['checkBoxShopAsso_layered_filter'] as $id_asso_object => $row) foreach ($_POST['checkBoxShopAsso_layered_filter'] as $id_shop => $row)
{ {
foreach ($row as $id_shop => $value) $assos[] = array('id_object' => (int)$id_layered_filter, 'id_shop' => (int)$id_shop);
{ $shop_list[] = (int)$id_shop;
$assos[] = array('id_object' => (int)$id_layered_filter, 'id_shop' => (int)$id_shop);
$shop_list[] = (int)$id_shop;
}
} }
} }
else else