From cd6989b0380bb289bffac0b947a3bfa6eb8c773e Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 25 Jan 1999 12:19:11 +0000 Subject: yet more mod_perl stuff --- htdocs/edit/process/cust_pkg.cgi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'htdocs/edit/process/cust_pkg.cgi') diff --git a/htdocs/edit/process/cust_pkg.cgi b/htdocs/edit/process/cust_pkg.cgi index e8493b2de..639b2f140 100755 --- a/htdocs/edit/process/cust_pkg.cgi +++ b/htdocs/edit/process/cust_pkg.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: cust_pkg.cgi,v 1.3 1999-01-19 05:13:54 ivan Exp $ +# $Id: cust_pkg.cgi,v 1.4 1999-01-25 12:19:10 ivan Exp $ # # this is for changing packages around, not for editing things within the # package @@ -21,7 +21,10 @@ # bmccane@maxbaud.net 98-apr-3 # # $Log: cust_pkg.cgi,v $ -# Revision 1.3 1999-01-19 05:13:54 ivan +# Revision 1.4 1999-01-25 12:19:10 ivan +# yet more mod_perl stuff +# +# Revision 1.3 1999/01/19 05:13:54 ivan # for mod_perl: no more top-level my() variables; use vars instead # also the last s/create/new/; # @@ -60,7 +63,8 @@ foreach $pkgpart ( map /^pkg(\d+)$/ ? $1 : (), $cgi->param ) { $error = FS::cust_pkg::order($custnum,\@pkgparts,\@remove_pkgnums); if ($error) { - idiot($error); + $cgi->param('error', $error); + print $cgi->redirect(popurl(2). "cust_pkg.cgi?". $cgi->query_string ); } else { print $cgi->redirect(popurl(3). "view/cust_main.cgi?$custnum#cust_pkg"); } -- cgit v1.2.1