summaryrefslogtreecommitdiff
path: root/httemplate/edit/svc_forward.cgi
diff options
context:
space:
mode:
authorivan <ivan>2001-12-04 13:10:16 +0000
committerivan <ivan>2001-12-04 13:10:16 +0000
commitb97e635c30397464a0161feb9f2aa1b472710410 (patch)
treea730b2730a7f3e1013377d6ccae7e3fdc8c86cce /httemplate/edit/svc_forward.cgi
parent301ef098a56e1fc011d26d1f108a48e99ad701f4 (diff)
from Dave Burgess <burgess@neonramp.com>:
I had to change line 104 in /edit/svc_forward.cgi and add 'my' as the qualifier on the LHS of the assignment. This also solves the problem with a similar error on the RHS of line 105. It also seems to make the routine work fairly reliably (it has been problematic for me in the past).
Diffstat (limited to 'httemplate/edit/svc_forward.cgi')
-rwxr-xr-xhttemplate/edit/svc_forward.cgi13
1 files changed, 8 insertions, 5 deletions
diff --git a/httemplate/edit/svc_forward.cgi b/httemplate/edit/svc_forward.cgi
index caf6ee7..75cd9fc 100755
--- a/httemplate/edit/svc_forward.cgi
+++ b/httemplate/edit/svc_forward.cgi
@@ -1,5 +1,5 @@
<%
-# <!-- $Id: svc_forward.cgi,v 1.6 2001-10-30 14:54:07 ivan Exp $ -->
+# <!-- $Id: svc_forward.cgi,v 1.7 2001-12-04 13:10:16 ivan Exp $ -->
use strict;
use vars qw( $conf $cgi $mydomain $action $svcnum $svc_forward $pkgnum $svcpart
@@ -99,10 +99,13 @@ if ($pkgnum) {
foreach $acct_svcpart (@u_acct_svcparts) { #now find the corresponding
#record(s) in cust_svc ( for this
#pkgnum ! )
- my($i_cust_svc);
- foreach $i_cust_svc ( qsearch('cust_svc',{'pkgnum'=>$cust_pkgnum,'svcpart'=>$acct_svcpart}) ) {
- $svc_acct=qsearchs('svc_acct',{'svcnum'=>$i_cust_svc->getfield('svcnum')});
- $email{$svc_acct->getfield('svcnum')}=$svc_acct->email;
+ foreach my $i_cust_svc (
+ qsearch( 'cust_svc', { 'pkgnum' => $cust_pkgnum,
+ 'svcpart' => $acct_svcpart } )
+ ) {
+ my $svc_acct =
+ qsearchs( 'svc_acct', { 'svcnum' => $i_cust_svc->svcnum } );
+ $email{$svc_acct->svcnum} = $svc_acct->email;
}
}
}