[-] Core: Fix search indexation when id_product is forced #PSCFV-6039
This commit is contained in:
1 parent
05d5ab2df3
commit
29b4adb032
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user