Skip to content
Snippets Groups Projects
Commit bef5c274 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #5756 from atm-maxime/fix_pgsql_supplierorder_list

FIX No ORDER BY needed for a COUNT sql, causes PGSQL error
parents ff632718 5840ed82
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment