diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index 7c28bc5133b..b1525b7be1c 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -264,10 +264,10 @@ else /* */ /* *************************************************************************** */ { - if ($id > 0) + if ($_GET["id"] > 0) { $expedition = New Expedition($db); - $result = $expedition->fetch($id); + $result = $expedition->fetch($_GET["id"]); if ( $result > 0) { @@ -292,7 +292,7 @@ else */ if ($action == 'delete') { - $html->form_confirm("$PHP_SELF?id=$id","Supprimer l'expedition","Etes-vous sûr de vouloir supprimer cette expedition ?","confirm_delete"); + $html->form_confirm("fiche.php?id=$expedition->id","Supprimer l'expedition","Etes-vous sûr de vouloir supprimer cette expedition ?","confirm_delete"); } /* @@ -301,7 +301,7 @@ else */ if ($_GET["action"] == 'valid') { - $html->form_confirm("$PHP_SELF?id=$id","Valider l'expédition","Etes-vous sûr de vouloir valider cette expédition ?","confirm_valid"); + $html->form_confirm("fiche.php?id=$expedition->id","Valider l'expédition","Etes-vous sûr de vouloir valider cette expédition ?","confirm_valid"); } /* * Confirmation de l'annulation @@ -309,7 +309,7 @@ else */ if ($_GET["action"] == 'annuler') { - $html->form_confirm("$PHP_SELF?id=$id","Annuler la commande","Etes-vous sûr de vouloir annuler cette commande ?","confirm_cancel"); + $html->form_confirm("fiche.php?id=$expedition->id","Annuler la commande","Etes-vous sûr de vouloir annuler cette commande ?","confirm_cancel"); } /* @@ -317,7 +317,7 @@ else */ if ($commande->brouillon == 1 && $user->rights->commande->creer) { - print '