[-] Bo : Fixed #PSTEST-1055 & #PSFV-768 : update call identifier

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14533 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-04-06 14:07:08 +00:00
parent e3537cbb74
commit 07e7391036
4 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -1714,7 +1714,7 @@ class AdminControllerCore extends Controller
if (Tools::isSubmit('submitFilter'.$this->table) || $this->context->cookie->{'submitFilter'.$this->table} !== false)
$this->filter = true;
$this->id_object = (int)Tools::getValue('id_'.$this->table);
$this->id_object = (int)Tools::getValue($this->identifier);
/* Delete object image */
if (isset($_GET['deleteImage']))
@@ -1793,7 +1793,7 @@ class AdminControllerCore extends Controller
else
$this->errors[] = Tools::displayError('You do not have permission to add here.');
}
elseif (isset($_GET['update'.$this->table]) && isset($_GET['id_'.$this->table]))
elseif (isset($_GET['update'.$this->table]) && isset($_GET[$this->identifier]))
{
$this->display = 'edit';
if ($this->tabAccess['edit'] !== '1')