From: Jonathan Prykop Date: Sat, 18 Jul 2015 04:41:51 +0000 (-0500) Subject: RT#37165: Print document when account is created [fix for welcome_letter, no backport... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0b9712428c18bd68f39c66a18e489c0e0ebc79af RT#37165: Print document when account is created [fix for welcome_letter, no backport to 3] --- diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index f0c4f5c0b..c636408d8 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4822,7 +4822,9 @@ sub queueable_print { my $self = qsearchs('cust_main', { 'custnum' => $opt{custnum} } ) or die "invalid customer number: " . $opt{custnum}; - my $error = $self->print( { 'template' => $opt{template} } ); +#do not backport this change to 3.x +# my $error = $self->print( { 'template' => $opt{template} } ); + my $error = $self->print( $opt{'template'} ); die $error if $error; }