[freeside-commits] freeside/httemplate/search cust_pkg.cgi, 1.42.2.9, 1.42.2.10
Ivan,,,
ivan at wavetail.420.am
Tue Aug 11 19:36:43 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv18739/httemplate/search
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_pkg.cgi
Log Message:
fix multiple pkgpart search, RT#5924
Index: cust_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pkg.cgi,v
retrieving revision 1.42.2.9
retrieving revision 1.42.2.10
diff -u -d -r1.42.2.9 -r1.42.2.10
--- cust_pkg.cgi 1 Jul 2008 05:01:29 -0000 1.42.2.9
+++ cust_pkg.cgi 12 Aug 2009 02:36:41 -0000 1.42.2.10
@@ -138,16 +138,16 @@
# my %part_pkg = map { $_->pkgpart => $_ } qsearch('part_pkg', {});
-
my %search_hash = ();
$search_hash{'query'} = $cgi->keywords;
-for my $param (qw(agentnum magic status classnum pkgpart)) {
- $search_hash{$param} = $cgi->param($param)
- if $cgi->param($param);
+for my $param (qw( agentnum magic status classnum )) {
+ $search_hash{$param} = $cgi->param($param) if $cgi->param($param);
}
+$search_hash{'pkgpart'} = [ $cgi->param('pkgpart') ];
+
###
# parse dates
###
More information about the freeside-commits
mailing list