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

@ -117,8 +117,10 @@ if (empty($reshook))
header("Location: ".$urltogo); header("Location: ".$urltogo);
exit; exit;
} }
if ($id > 0 || ! empty($ref)) $ret = $object->fetch($id,$ref); else {
$action=''; 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 include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once