From 085a8d68db200e8cb99680945e1511bf73f2ebbc Mon Sep 17 00:00:00 2001 From: BENKE Charles Date: Sat, 14 Sep 2013 10:41:36 +0200 Subject: [PATCH] Update html.formother.class.php bugfix --- htdocs/core/class/html.formother.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 1694e7f32de..6e4b37498b1 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -368,7 +368,7 @@ class FormOther if (empty($user->rights->user->user->lire) && $user->societe_id) { $sql_usr.=" UNION "; - $sql_usr.= "SELECT u2.rowid, u2.name as name, u2.firstname, u2.login"; + $sql_usr.= "SELECT u2.rowid, u2.lastname as name, u2.firstname, u2.login"; $sql_usr.= " FROM ".MAIN_DB_PREFIX."user as u2, ".MAIN_DB_PREFIX."societe_commerciaux as sc"; $sql_usr.= " WHERE u2.entity IN (0,".$conf->entity.")"; $sql_usr.= " AND u2.rowid = sc.fk_user AND sc.fk_soc=".$user->societe_id;