From 1c71eed70312ba0bc60c935890538f99270a04d4 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Sun, 11 Dec 2016 15:37:29 +0100 Subject: [PATCH] Very best fix of cancel edit line --- htdocs/commande/card.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 5264867992d..efd6af16f70 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -117,10 +117,11 @@ if (empty($reshook)) header("Location: ".$urltogo); exit; } - else { - header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $id); - exit(); + if ($id > 0 || ! empty($ref)) { + $ret = $object->fetch($id,$ref); + $object->fetch_thirdparty(); } + $action=''; } include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once