From cd88f4076f1cbca6ce3f03aec6042872d5c6ae84 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 3 Jul 2024 15:52:51 +0200 Subject: [PATCH] fix: on edit line contrat, if failed at the end, stay on edit mode --- htdocs/contrat/card.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 0ed49cc8aa67b..8e21569ec5e7f 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -802,6 +802,8 @@ $result = $objectline->update($user); if ($result < 0) { $error++; + $action = 'editline'; + $_GET['rowid'] = GETPOST('elrowid'); setEventMessages($objectline->error, $objectline->errors, 'errors'); } }