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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16528 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-07-23 10:55:35 +00:00
parent 6a5d3f8e0e
commit da117efe58
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;
}