[freeside-commits] freeside/FS/FS/ClientAPI Signup.pm,1.61,1.62
Ivan,,,
ivan at wavetail.420.am
Mon Oct 25 07:53:49 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv14634
Modified Files:
Signup.pm
Log Message:
should fix "cant call method "setdefault" on an undefined value" errors, RT#10360
Index: Signup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/Signup.pm,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -w -d -r1.61 -r1.62
--- Signup.pm 29 Sep 2010 05:40:11 -0000 1.61
+++ Signup.pm 25 Oct 2010 14:53:46 -0000 1.62
@@ -608,8 +608,6 @@
} else {
die "unknown signup service $svc_x";
}
- my $y = $svc[0]->setdefault; # arguably should be in new method
- return { 'error' => $y } if $y && !ref($y);
if ($packet->{'mac_addr'} && $conf->exists('signup_server-mac_addr_svcparts'))
{
@@ -628,15 +626,16 @@
'_password' => '', #blank as requested (set passwordmin to 0)
};
- my $y = $svc->setdefault; # arguably should be in new method
- return { 'error' => $y } if $y && !ref($y);
-
push @svc, $svc;
}
+ foreach my $svc ( @svc ) {
+ my $y = $svc->setdefault; # arguably should be in new method
+ return { 'error' => $y } if $y && !ref($y);
#$error = $svc->check;
#return { 'error' => $error } if $error;
+ }
#setup a job dependancy to delay provisioning
my $placeholder = new FS::queue ( {
More information about the freeside-commits
mailing list