From 0d81e56d3651752576b4969b39b49dc80012fc0e Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 28 May 2004 10:17:08 +0000 Subject: [PATCH] correct count statement when searching for individual invoices by # --- httemplate/search/cust_bill.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httemplate/search/cust_bill.html b/httemplate/search/cust_bill.html index 337e9e859..3ae624af2 100755 --- a/httemplate/search/cust_bill.html +++ b/httemplate/search/cust_bill.html @@ -41,7 +41,7 @@ } else { $cgi->param('invnum') =~ /^\s*(FS-)?(\d+)\s*$/; - $count_query = 'SELECT 1'; + $count_query = "SELECT COUNT(*) FROM cust_bill WHERE invnum = $2"; $sql_query = { 'table' => 'cust_bill', 'hashref' => { 'invnum' => $2 }, -- 2.11.0