diff options
-rwxr-xr-x | LedgerSMB/Form.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 8f8101ca..a3005ee9 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -619,7 +619,7 @@ sub parse_template { $self->{tmpfile} = "${LedgerSMB::Sysconfig::userspath}/${fileid}_${tmpfile}"; if ($self->{format} =~ /(postscript|pdf)/ || $self->{media} eq 'email') { - $out = $self->{OUT}; + my $out = $self->{OUT}; $self->{OUT} = ">$self->{tmpfile}"; } @@ -892,6 +892,7 @@ sub parse_template { $mail->{to} = qq|$self->{email}|; $mail->{from} = qq|"$myconfig->{name}" <$myconfig->{email}>|; + $mail->{notify} = $self->{notify}; $mail->{fileid} = "$fileid."; # if we send html or plain text inline |