Skip to content

Commit

Permalink
Merge pull request #8788 from bugness-chl/develop
Browse files Browse the repository at this point in the history
Fix #8722 useless sql ORDER BY
  • Loading branch information
eldy committed May 18, 2018
2 parents e503aeb + 9b2f627 commit dd53f41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion htdocs/compta/facture/card.php
Expand Up @@ -720,7 +720,6 @@
$sql.= ' WHERE pf.fk_facture = '.$object->id;
$sql.= ' AND pf.fk_paiement = p.rowid';
$sql.= ' AND p.entity IN (' . getEntity('facture').')';
$sql.= ' ORDER BY p.datep, p.tms';

$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
Expand Down
1 change: 0 additions & 1 deletion htdocs/fourn/facture/card.php
Expand Up @@ -508,7 +508,6 @@
$sql.= ' WHERE pf.fk_facturefourn = '.$object->id;
$sql.= ' AND pf.fk_paiementfourn = p.rowid';
$sql.= ' AND p.entity IN (' . getEntity('facture').')';
$sql.= ' ORDER BY p.datep, p.tms';

$resql = $db->query($sql);
if (! $resql) dol_print_error($db);
Expand Down

0 comments on commit dd53f41

Please sign in to comment.