[*] BO : you can now disable automatic indexation of the products #PSCFV-3258

This commit is contained in:
dMetzger
2012-07-23 10:55:35 +00:00
parent e18d9ba217
commit 2b277d05fc
6 changed files with 22 additions and 9 deletions
+2 -2
View File
@@ -4712,7 +4712,7 @@ class ProductCore extends ObjectModel
public function addWs($autodate = true, $null_values = false)
{
$success = parent::add($autodate, $null_values);
if ($success)
if ($success && Configuration::get('PS_SEARCH_INDEXATION'))
Search::indexation(false, $this->id);
return $success;
}
@@ -4720,7 +4720,7 @@ class ProductCore extends ObjectModel
public function updateWs($null_values = false)
{
$success = parent::update($null_values);
if ($success)
if ($success && Configuration::get('PS_SEARCH_INDEXATION'))
Search::indexation(false, $this->id);
return $success;
}