Skip to content

Commit

Permalink
Fix sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 23, 2024
1 parent 5939421 commit 683c11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@
/* The fast and low memory method to get and count full list converts the sql into a sql count */
$sqlforcount = preg_replace('/^'.preg_quote($sqlfields, '/').'/', 'SELECT COUNT(*) as nbtotalofrecords', $sql);
$sqlforcount = preg_replace('/GROUP BY .*$/', '', $sqlforcount);
$sqlforcount = preg_replace('/LEFT JOIN '.MAIN_DB_PREFIX.'paiementfourn_facturefourn as pf ON pf.fk_facturefourn = f.rowid/', $sqlforcount);
$sqlforcount = preg_replace('/LEFT JOIN '.MAIN_DB_PREFIX.'paiementfourn_facturefourn as pf ON pf.fk_facturefourn = f.rowid/', '', $sqlforcount);

$resql = $db->query($sqlforcount);
if ($resql) {
Expand Down

0 comments on commit 683c11e

Please sign in to comment.