[-] BO : #PSFV-173 : indexing when adding a product
This commit is contained in:
@@ -933,7 +933,6 @@ class AdminControllerCore extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//d('after ');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count($this->_errors) <= 0)
|
if (count($this->_errors) <= 0)
|
||||||
|
|||||||
@@ -1407,7 +1407,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$this->_errors[] = Tools::displayError('An error occurred while linking object.').' <b>'.$this->table.'</b> '.Tools::displayError('To categories');
|
$this->_errors[] = Tools::displayError('An error occurred while linking object.').' <b>'.$this->table.'</b> '.Tools::displayError('To categories');
|
||||||
else if (!$this->updateTags($languages, $object))
|
else if (!$this->updateTags($languages, $object))
|
||||||
$this->_errors[] = Tools::displayError('An error occurred while adding tags.');
|
$this->_errors[] = Tools::displayError('An error occurred while adding tags.');
|
||||||
else if ($id_image = $this->addProductImage($object))
|
else
|
||||||
{
|
{
|
||||||
Hook::exec('addProduct', array('product' => $object));
|
Hook::exec('addProduct', array('product' => $object));
|
||||||
Search::indexation(false, $object->id);
|
Search::indexation(false, $object->id);
|
||||||
@@ -1489,7 +1489,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$this->_errors[] = Tools::displayError('An error occurred while linking object.').' <b>'.$this->table.'</b> '.Tools::displayError('To categories');
|
$this->_errors[] = Tools::displayError('An error occurred while linking object.').' <b>'.$this->table.'</b> '.Tools::displayError('To categories');
|
||||||
else if (!$this->updateTags($languages, $object))
|
else if (!$this->updateTags($languages, $object))
|
||||||
$this->_errors[] = Tools::displayError('An error occurred while adding tags.');
|
$this->_errors[] = Tools::displayError('An error occurred while adding tags.');
|
||||||
else //if (Tools::getValue('id_image') && $id_image = $this->addProductImage($object, Tools::getValue('resizer')))
|
else
|
||||||
{
|
{
|
||||||
//self::$currentIndex .= '&image_updated='.$id_image;
|
//self::$currentIndex .= '&image_updated='.$id_image;
|
||||||
Hook::exec('updateProduct', array('product' => $object));
|
Hook::exec('updateProduct', array('product' => $object));
|
||||||
|
|||||||
Reference in New Issue
Block a user