From 29b4adb032c2a2e6b9ed7899686189a641f71c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 10 Dec 2012 13:52:09 +0100 Subject: [PATCH] [-] Core: Fix search indexation when id_product is forced #PSCFV-6039 --- classes/Search.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/Search.php b/classes/Search.php index 67a60cc5a..2aee58b65 100644 --- a/classes/Search.php +++ b/classes/Search.php @@ -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