Fix: Echec sql pour un utilisateur avec socid != 0
This commit is contained in:
parent
313bca64f2
commit
955d481050
@ -251,7 +251,7 @@ if ($_GET["id"])
|
||||
$sql.= " AND d.fk_commande = c.rowid AND d.fk_product =".$product->id;
|
||||
if ($socid)
|
||||
{
|
||||
$sql .= " AND f.fk_soc = $socid";
|
||||
$sql .= " AND c.fk_soc = $socid";
|
||||
}
|
||||
$sql.= " ORDER BY $sortfield $sortorder ";
|
||||
$sql.= $db->plimit($conf->liste_limit +1, $offset);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user