From 5c9300ac3928e6c59d2d18266e3356705be6c944 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 13 Feb 2011 16:00:50 +0000 Subject: [PATCH] Fix: Missing parameter of function --- htdocs/core/class/html.form.class.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3c8d41a6a8d..c38edb71365 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -680,6 +680,8 @@ class Form */ function select_contacts($socid,$selected='',$htmlname='contactid',$showempty=0,$exclude='',$limitto='') { + global $langs; + // Permettre l'exclusion de contacts if (is_array($exclude)) { @@ -725,7 +727,7 @@ class Form print ''; } else @@ -733,7 +735,7 @@ class Form print ''; } } @@ -741,7 +743,7 @@ class Form { if ($selected == $obj->rowid) { - print $contactstatic->getFullName(); + print $contactstatic->getFullName($langs); } } $i++; @@ -787,7 +789,7 @@ class Form */ function select_dolusers($selected='',$htmlname='userid',$show_empty=0,$exclude='',$disabled=0,$include='',$enableonly='') { - global $conf,$user; + global $conf,$user,$langs; // Permettre l'exclusion d'utilisateurs if (is_array($exclude)) $excludeUsers = implode("','",$exclude); @@ -839,7 +841,7 @@ class Form if ($disableline) $out.= ' disabled="true"'; $out.= '>'; } - $out.= $userstatic->getFullName(); + $out.= $userstatic->getFullName($langs); //if ($obj->admin) $out.= ' *'; if ($conf->global->MAIN_SHOW_LOGIN) $out.= ' ('.$obj->login.')'; @@ -2230,6 +2232,7 @@ class Form function form_contacts($page, $societe, $selected='', $htmlname='contactidp') { global $langs; + if ($htmlname != "none") { print '
';