From 7521febb881e96e386cd435cfb0d6ba28c1f0db9 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Sat, 23 Mar 2024 16:43:53 +0100 Subject: [PATCH] Fix cancel edit line dispatch should not update line --- htdocs/fourn/commande/dispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index f9ec2a67379..9de6922119f 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -451,7 +451,7 @@ if ($action == 'confirm_deleteline' && $confirm == 'yes' && $permissiontoreceive } // Update a dispatched line -if ($action == 'updateline' && $permissiontoreceive) { +if ($action == 'updateline' && $permissiontoreceive && empty($cancel)) { $db->begin(); $error = 0;