diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 0f42e08bfc6..d53906374e8 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -761,7 +761,7 @@ class Form * \param selected Id contact pré-sélectionn * \param htmlname Nom champ formulaire */ - function select_adresse_livraison($selected='', $socid, $htmlname='idl') + function select_adresse_livraison($selected='', $socid, $htmlname='adresse_livraison_id') { // On recherche les utilisateurs $sql = "SELECT a.rowid, a.label"; @@ -1597,7 +1597,7 @@ class Form print ''; print ''; print ''; print '
'; - $numaddress = $this->select_adresse_livraison($selected, $_GET['socid'], $htmlname); + $numaddress = $this->select_adresse_livraison($selected, $socid, $htmlname); print ''; if ($numaddress==0)