Fixed problem when editing a bookmark and failing

This commit is contained in:
Marcos García de La Fuente 2014-11-23 16:54:09 +01:00
parent 52eb4943e2
commit 373bdcf5d7

View File

@ -50,6 +50,13 @@ $backtopage=GETPOST('backtopage','alpha');
if ($action == 'add' || $action == 'addproduct' || $action == 'update')
{
if ($action == 'update') {
$invertedaction = 'edit';
} else {
$invertedaction = 'create';
}
$error = 0;
if (GETPOST("cancel"))
@ -101,12 +108,12 @@ if ($action == 'add' || $action == 'addproduct' || $action == 'update')
{
setEventMessage($bookmark->error, 'errors');
}
$action='create';
$action = $invertedaction;
}
}
else
{
$action='create';
$action = $invertedaction;
}
}