Fixed: Cancel button not correctly supported
This commit is contained in:
parent
c0afd4f174
commit
c6bb5904e7
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user