summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-07-17 23:41:51 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-07-22 17:51:13 -0500
commite271af2aed5a0c0b7814947cb8690405318067e4 (patch)
tree2d88c0a472c613514f37334e95ec9f4583bb35e4 /FS/FS/cust_main.pm
parentf477acee6da9e2ccf24fe34ade2c39051fe20477 (diff)
RT#37165: Print document when account is created [fix for welcome_letter, no backport to 3]
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r--FS/FS/cust_main.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index f0c4f5c..c636408 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;
}