[-] Core: Fix search indexation when id_product is forced #PSCFV-6039

This commit is contained in:
Rémi Gaillard
2012-12-10 13:52:09 +01:00
parent 05d5ab2df3
commit 29b4adb032
+3
View File
@@ -431,7 +431,10 @@ class SearchCore
foreach ($products as $product)
$ids[] = (int)$product['id_product'];
if (count($ids))
{
$db->execute('DELETE FROM '._DB_PREFIX_.'search_index WHERE id_product IN ('.implode(',', $ids).')');
ObjectModel::updateMultishopTable('Product', array('indexed' => 0), 'a.id_product IN ('.implode(',', $ids).')');
}
}
// Every fields are weighted according to the configuration in the backend