Best fix of cancel edit line

This commit is contained in:
Juanjo Menent 2016-12-11 15:21:06 +01:00
parent 5233c65aba
commit c62a2fb97e

View File

@ -116,9 +116,11 @@ if (empty($reshook))
$urltogo=$backtopage?$backtopage:dol_buildpath('/commande/list.php',1);
header("Location: ".$urltogo);
exit;
}
if ($id > 0 || ! empty($ref)) $ret = $object->fetch($id,$ref);
$action='';
}
else {
header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $id); // Pour reaffichage de la fiche en cours d'edition
exit();
}
}
include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once