Skip to content

Commit

Permalink
3.8 bad filtering caused by statut filter #3580
Browse files Browse the repository at this point in the history
correction ported on 3.8 too, sorry for the bad step process
  • Loading branch information
defrance committed Sep 26, 2015
1 parent b8bf21b commit 8dcd615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/list.php
Expand Up @@ -191,7 +191,7 @@
if ($search_societe) $sql .= natural_search('s.nom', $search_societe);
if ($search_montant_ht != '') $sql.= natural_search('f.total', $search_montant_ht, 1);
if ($search_montant_ttc != '') $sql.= natural_search('f.total_ttc', $search_montant_ttc, 1);
if ($search_status != '') $sql.= " AND f.fk_statut = '".$db->escape($search_status)."'";
if ($search_status >= 0 ) $sql.= " AND f.fk_statut = ".$db->escape($search_status);
if ($month > 0)
{
if ($year > 0 && empty($day))
Expand Down

0 comments on commit 8dcd615

Please sign in to comment.