From 8baee6658f3372ba69d76a142899aa6c1a6bd6d1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 30 Jan 2011 11:36:42 +0000 Subject: [PATCH] Fix: debug multicompany --- htdocs/societe/commerciaux.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/societe/commerciaux.php b/htdocs/societe/commerciaux.php index 7acc91fbe76..e230f003e12 100644 --- a/htdocs/societe/commerciaux.php +++ b/htdocs/societe/commerciaux.php @@ -1,6 +1,7 @@ - * Copyright (C) 2010 Laurent Destailleur +/* Copyright (C) 2005 Rodolphe Quiedeville + * Copyright (C) 2010 Laurent Destailleur + * Copyright (C) 2010-2011 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -185,8 +186,9 @@ if ($_GET["socid"]) $title=$langs->trans("ListOfUsers"); $sql = "SELECT u.rowid, u.name, u.firstname, u.login"; - $sql .= " FROM ".MAIN_DB_PREFIX."user as u"; - $sql .= " ORDER BY u.name ASC "; + $sql.= " FROM ".MAIN_DB_PREFIX."user as u"; + $sql.= " WHERE u.entity IN (0,".$conf->entity.")"; + $sql.= " ORDER BY u.name ASC "; $resql = $db->query($sql); if ($resql)