Fixed: Cancel button not correctly supported

This commit is contained in:
Laurent Destailleur 2014-12-14 16:01:25 +01:00
parent c0afd4f174
commit c6bb5904e7

View File

@ -55,11 +55,19 @@ $object = new Product($db);
$error=0; $error=0;
/* /*
* Actions * Actions
*/ */
if ($action == 'update_price' && ! $_POST ["cancel"] && ($user->rights->produit->creer || $user->rights->service->creer)) { if ($action == 'update_price' && GETPOST("cancel"))
{
$action='';
}
if ($action == 'update_price' && ! GETPOST("cancel") && ($user->rights->produit->creer || $user->rights->service->creer))
{
$result = $object->fetch($id); $result = $object->fetch($id);
$error=0; $error=0;