Merge pull request #2089 from marcosgdf/bug-1718

Fixed [ bug #1718 ] Mistakenly searching for text in amount field breaks
This commit is contained in:
Laurent Destailleur 2014-11-28 00:37:56 +01:00
commit 806719b562

View File

@ -123,7 +123,7 @@ if ($search_user)
}
if ($search_ttc)
{
$sql .= " AND total_ttc = ".price2num($search_ttc);
$sql .= " AND total_ttc = '".$db->escape(price2num($search_ttc))."'";
}
if ($sall)
{