From 08522647fc5a5a659e71147671d451aa43835273 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 May 2006 10:20:24 +0000 Subject: [PATCH] bugfix --- htdocs/expedition/liste.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php index fc8f0a29957..229a7878569 100644 --- a/htdocs/expedition/liste.php +++ b/htdocs/expedition/liste.php @@ -62,7 +62,7 @@ if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", sc.fk_soc, $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e, ".MAIN_DB_PREFIX."societe as s"; if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc, ".MAIN_DB_PREFIX."commande as c"; if ($socidp) $sql.=", ".MAIN_DB_PREFIX."commande as c"; -$sql_add = " WHERE c.fk_soc = s.rowid"; +$sql_add = " WHERE "; if ($socidp) { $sql.= $sql_add . " e.fk_commande = c.rowid AND c.fk_soc = ".$socidp;