diff options
author | levinse <levinse> | 2010-12-07 20:38:52 +0000 |
---|---|---|
committer | levinse <levinse> | 2010-12-07 20:38:52 +0000 |
commit | 8468ce6abd28b145bfde14a210a166cca46115dc (patch) | |
tree | 3c7a85b45d1a8fb655dd4abf2ed22570c74ece93 /httemplate/search/qual.cgi | |
parent | c58774a70c3326ad2ba5a7a38b174dfbd76a9f78 (diff) |
added prospect support to qualifications, RT7111
Diffstat (limited to 'httemplate/search/qual.cgi')
-rwxr-xr-x | httemplate/search/qual.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/search/qual.cgi b/httemplate/search/qual.cgi index 58e011406..0bb455b3c 100755 --- a/httemplate/search/qual.cgi +++ b/httemplate/search/qual.cgi @@ -73,6 +73,10 @@ my $extra_sql = ''; if ( $cgi->param('custnum') && $cgi->param('custnum') =~ /^(\d+)$/ ) { $extra_sql = " where custnum = $1 or locationnum in " . " (select locationnum from cust_location where custnum = $1)"; +} elsif ( $cgi->param('prospectnum') + && $cgi->param('prospectnum') =~ /^(\d+)$/ ) { + $extra_sql = " where prospectnum = $1 or locationnum in " + . " (select locationnum from cust_location where prospectnum = $1)"; } </%init> |