From 55476aa0484f5ebada5f36e1407722d84609bd34 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 15 Aug 2010 07:00:21 +0000 Subject: additional by-otaker searches fixed for the brave new world of usernum, RT#9555 --- httemplate/search/cust_pkg_discount.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'httemplate/search/cust_pkg_discount.html') diff --git a/httemplate/search/cust_pkg_discount.html b/httemplate/search/cust_pkg_discount.html index 233345e1c..d70c3116f 100644 --- a/httemplate/search/cust_pkg_discount.html +++ b/httemplate/search/cust_pkg_discount.html @@ -78,9 +78,9 @@ if ( $cgi->param('status') eq 'active' ) { "; #XXX also end date } -#otaker -if ( $cgi->param('otaker') && $cgi->param('otaker') =~ /^([\w\.\-]+)$/ ) { - push @where, "cust_pkg_discount.otaker = '$1'"; +#usernum +if ( $cgi->param('usernum') =~ /^(\d+)$/ ) { + push @where, "cust_pkg_discount.usernum = $1"; } #agent -- cgit v1.2.1