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

This commit is contained in:
lLefevre
2012-04-06 14:07:08 +00:00
parent 6012536630
commit bc310b252d
4 changed files with 6 additions and 5 deletions

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')