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

This commit is contained in:
mDeflotte
2012-01-12 09:35:41 +00:00
parent 5e014ff3d4
commit bd5a67520b
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