summaryrefslogtreecommitdiff
path: root/bin/jc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/jc.pl')
-rw-r--r--bin/jc.pl17
1 files changed, 1 insertions, 16 deletions
diff --git a/bin/jc.pl b/bin/jc.pl
index a5889c19..0675c2cd 100644
--- a/bin/jc.pl
+++ b/bin/jc.pl
@@ -2144,7 +2144,7 @@ qq|$form->{"${item}hour"}:$form->{"${item}min"}:$form->{"${item}sec"}|;
}
if ( $form->{media} !~ /(screen|queue)/ ) {
- $form->{OUT} = "${LedgerSMB::Sysconfig::printer}{$form->{media}}";
+ $form->{OUT} = ${LedgerSMB::Sysconfig::printer}{ $form->{media} };
$form->{printmode} = '|-';
if ( $form->{printed} !~ /$form->{formname}/ ) {
@@ -2205,21 +2205,6 @@ qq|$form->{"${item}hour"}:$form->{"${item}min"}:$form->{"${item}sec"}|;
$form->audittrail( "", \%myconfig, \%audittrail );
}
- if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) )
- {
- my $template =
- LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' );
- try {
- $template->render($form);
- $form->header;
- print $template->{'output'};
- exit;
- }
- catch Error::Simple with {
- my $E = shift;
- $form->error( $E->stacktrace );
- };
- }
$form->parse_template( \%myconfig, ${LedgerSMB::Sysconfig::userspath} );
if ( defined %$old_form ) {