Merge pull request #5756 from atm-maxime/fix_pgsql_supplierorder_list

FIX No ORDER BY needed for a COUNT sql, causes PGSQL error
This commit is contained in:
Laurent Destailleur 2016-09-17 17:49:19 +02:00 committed by GitHub
commit bef5c2748c

View File

@ -411,7 +411,6 @@ if ($object->id > 0)
$sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as p ";
$sql.= " WHERE p.fk_soc =".$object->id;
$sql.= " AND p.entity =".$conf->entity;
$sql.= " ORDER BY p.date_commande DESC";
$resql=$db->query($sql);
if ($resql)
{