From 4742905fd2bf3f510c6f8e883efd3ff592cd52fd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 13 Feb 2011 16:01:00 +0000 Subject: [PATCH] Fix: Missing parameter of function --- htdocs/core/class/html.form.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 278e649c8fb..38b0b08b849 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -790,7 +790,7 @@ class Form */ function select_dolusers($selected='',$htmlname='userid',$show_empty=0,$exclude='',$disabled=0,$include='',$enableonly='') { - global $conf,$user; + global $conf,$user,$langs; // If no preselected user defined, we take current user if (empty($selected) && empty($conf->global->SOCIETE_DISABLE_DEFAULT_SALESREPRESENTATIVE)) $selected=$user->id; @@ -2211,6 +2211,7 @@ class Form function form_contacts($page, $societe, $selected='', $htmlname='contactidp') { global $langs; + if ($htmlname != "none") { print '
';