From: ivan Date: Wed, 14 Apr 1999 01:03:01 +0000 (+0000) Subject: oops, in 1.2 tree, can't do searches until [cgi|admin]suidsetup, X-Git-Tag: freeside_1_2_1~4 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6acd692c933d5d47459114b400e04c5a3675335b oops, in 1.2 tree, can't do searches until [cgi|admin]suidsetup, bug is hidden by mod_perl persistance --- diff --git a/htdocs/edit/cust_pkg.cgi b/htdocs/edit/cust_pkg.cgi index 8906a9441..766aa60ac 100755 --- a/htdocs/edit/cust_pkg.cgi +++ b/htdocs/edit/cust_pkg.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: cust_pkg.cgi,v 1.6 1999-02-28 00:03:36 ivan Exp $ +# $Id: cust_pkg.cgi,v 1.7 1999-04-14 01:03:01 ivan Exp $ # # this is for changing packages around, not editing things within the package # @@ -23,7 +23,11 @@ # 98-jun-1 # # $Log: cust_pkg.cgi,v $ -# Revision 1.6 1999-02-28 00:03:36 ivan +# Revision 1.7 1999-04-14 01:03:01 ivan +# oops, in 1.2 tree, can't do searches until [cgi|admin]suidsetup, +# bug is hidden by mod_perl persistance +# +# Revision 1.6 1999/02/28 00:03:36 ivan # removed misleading comments # # Revision 1.5 1999/02/07 09:59:18 ivan @@ -52,14 +56,16 @@ use FS::CGI qw(header popurl); use FS::part_pkg; use FS::type_pkgs; +$cgi = new CGI; +&cgisuidsetup($cgi); + +%pkg = (); +%comment = (); foreach (qsearch('part_pkg', {})) { $pkg{ $_ -> getfield('pkgpart') } = $_->getfield('pkg'); $comment{ $_ -> getfield('pkgpart') } = $_->getfield('comment'); } -$cgi = new CGI; -&cgisuidsetup($cgi); - if ( $cgi->param('error') ) { $custnum = $cgi->param('custnum'); %remove_pkg = map { $_ => 1 } $cgi->param('remove_pkg');