[freeside-commits] freeside/FS/FS/ClientAPI Signup.pm,1.68,1.69
Ivan,,,
ivan at wavetail.420.am
Fri Jan 21 11:32:05 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv10084
Modified Files:
Signup.pm
Log Message:
possibly fix problems with templated signup, RT#11218
Index: Signup.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/Signup.pm,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -w -d -r1.68 -r1.69
--- Signup.pm 14 Jan 2011 02:51:41 -0000 1.68
+++ Signup.pm 21 Jan 2011 19:32:03 -0000 1.69
@@ -509,13 +509,15 @@
my $template_custnum = $conf->config('signup_server-prepaid-template-custnum');
my $cust_main;
if ( $template_custnum && $packet->{prepaid_shortform} ) {
+
my $template_cust = qsearchs('cust_main', { 'custnum' => $template_custnum } );
return { 'error' => 'Configuration error' } unless $template_cust;
$cust_main = new FS::cust_main ( {
'agentnum' => $agentnum,
'refnum' => $packet->{refnum}
|| $conf->config('signup_server-default_refnum'),
- map { $_ => $template_cust->$_ } qw(
+
+ ( map { $_ => $template_cust->$_ } qw(
last first company address1 address2
city county state zip country
daytime night fax
@@ -523,9 +525,10 @@
ship_last ship_first ship_company ship_address1 ship_address2
ship_city ship_county ship_state ship_zip ship_country
ship_daytime ship_night ship_fax
+ )
),
- map { $_ => $packet->{$_} } qw(
+ ( map { $_ => $packet->{$_} } qw(
ss stateid stateid_state
payby
@@ -535,9 +538,12 @@
referral_custnum comments
)
+ ),
+
} );
- }
- else {
+
+ } else {
+
$cust_main = new FS::cust_main ( {
#'custnum' => '',
'agentnum' => $agentnum,
More information about the freeside-commits
mailing list