diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index baa1d013a85..3c7e820d07e 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -715,11 +715,11 @@ else
print '
';
if ($_GET['action'] == 'editdelivery_adress')
{
- $html->form_adresse_livraison($_SERVER['PHP_SELF'].'?id='.$commande->id,$_GET['socid'],$commande->adresse_livraison_id,'adresse_livraison_id');
+ $html->form_adresse_livraison($_SERVER['PHP_SELF'].'?id='.$commande->id,$commande->adresse_livraison_id,$_GET['socid'],'adresse_livraison_id');
}
else
{
- $html->form_adresse_livraison($_SERVER['PHP_SELF'].'?id='.$commande->id,$_GET['socid'],$commande->adresse_livraison_id,'none');
+ $html->form_adresse_livraison($_SERVER['PHP_SELF'].'?id='.$commande->id,$commande->adresse_livraison_id,$_GET['socid'],'none');
}
print ' | ';
diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 9f25cf73e5e..c6f129fbca3 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -1592,9 +1592,10 @@ class Form
{
print '';