//fixed bug #PSCFV-2632

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15828 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-06-04 13:40:32 +00:00
parent 3a0031c60e
commit aa6d9d5430
@@ -1640,7 +1640,12 @@ class AdminProductsControllerCore extends AdminController
{
// Save and stay on same form
if ($this->display == 'edit')
{
$this->confirmations[] = $this->l('Update successful');
$this->redirect_after = self::$currentIndex.'&id_product='.(int)$this->object->id
.(Tools::getIsset('id_category') ? '&id_category='.(int)Tools::getValue('id_category') : '')
.'&updateproduct&conf=4&key_tab='.Tools::safeOutput(Tools::getValue('key_tab')).'&token='.$this->token;
}
else
// Default behavior (save and back)
$this->redirect_after = self::$currentIndex.(Tools::getIsset('id_category') ? '&id_category='.(int)Tools::getValue('id_category') : '').'&conf=4&token='.$this->token;