From 0b9712428c18bd68f39c66a18e489c0e0ebc79af Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Fri, 17 Jul 2015 23:41:51 -0500 Subject: [PATCH] RT#37165: Print document when account is created [fix for welcome_letter, no backport to 3] --- FS/FS/cust_main.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.11.0