diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 4955fcdd226..ac91178d3cc 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1588,7 +1588,7 @@ class Form */ function form_adresse_livraison($page, $selected='', $socid, $htmlname='adresse_livraison_id') { - global $langs; + global $langs,$conf; if ($htmlname != "none") { print '
'; @@ -1596,9 +1596,14 @@ class Form print ''; print ''; print ''; print ''; + if ($numaddress==0) + { + $langs->load("companies"); + print '   '.$langs->trans("AddAddress").''; + } print '
'; - $this->select_adresse_livraison($selected, $_GET['socid'], $htmlname); + $numaddress = $this->select_adresse_livraison($selected, $_GET['socid'], $htmlname); print '
'; } else