[-] BO : #PSTEST-400 - Change the working of the button "Save and stay" for attributes and features

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12386 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-01-12 09:35:41 +00:00
parent 54526def45
commit e00341fd6e
3 changed files with 92 additions and 7 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ class AdminControllerCore extends Controller
$this->errors[] = Tools::displayError('An error occurred while updating object.').
' <b>'.$this->table.'</b> ('.Db::getInstance()->getMsgError().')';
}
else if ($this->postImage($object->id) && !count($this->errors))
else if ($this->postImage($object->id) && !count($this->errors) && $this->_redirect)
{
$parent_id = (int)Tools::getValue('id_parent', 1);
// Specific back redirect