[*] 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:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user