From f25f8b1909dfc19e122c44acb193042ed92bfb63 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 21 Mar 2007 18:22:32 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20possibilit=E9=20d'affecter=20?= =?UTF-8?q?un=20commercial=20=E0=20la=20cr=E9ation=20d'un=20tier=20(s=E9le?= =?UTF-8?q?ction=20non=20obligatoire),=20cette=20liste=20d=E9roulante=20n'?= =?UTF-8?q?est=20pas=20visible=20si=20l'utilisateur=20n'a=20pas=20le=20dro?= =?UTF-8?q?it=20de=20voir=20tous=20les=20clients,=20dans=20ce=20cas=20se?= =?UTF-8?q?=20sera=20l'id=20du=20user=20en=20question=20qui=20sera=20affec?= =?UTF-8?q?t=E9=20=E0=20la=20soci=E9t=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/html.form.class.php | 5 +++-- htdocs/langs/en_US/companies.lang | 3 ++- htdocs/langs/fr_FR/companies.lang | 3 ++- htdocs/soc.php | 16 +++++++++++++++- htdocs/societe.class.php | 7 +++++++ 5 files changed, 29 insertions(+), 5 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 29cdc0fcd23..1bd690ad830 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -657,7 +657,7 @@ class Form * \param selected Id contact pré-sélectionn * \param htmlname Nom champ formulaire */ - function select_users($selected='',$htmlname='userid') + function select_users($selected='',$htmlname='userid',$show_empty=0) { // On recherche les utilisateurs $sql = "SELECT u.rowid, u.name, u.firstname FROM "; @@ -667,6 +667,7 @@ class Form if ($this->db->query($sql)) { print '