From: Sven Schöling Date: Tue, 22 Nov 2011 17:32:30 +0000 (+0100) Subject: rp.pl::print_options auf template umgestellt. X-Git-Tag: release-2.7.0beta1~164 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0c2be9979d3c323a8f88ca372c0e1314774d7293;p=kivitendo-erp.git rp.pl::print_options auf template umgestellt. --- diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index b6266b4c9..01ae84fdb 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1738,79 +1738,28 @@ sub list_payments { } sub print_options { - $main::lxdebug->enter_sub(); + $::lxdebug->enter_sub; my ($dont_print) = @_; - my $form = $main::form; - my %myconfig = %main::myconfig; - my $locale = $main::locale; - - $form->{sendmode} = "attachment"; - - $form->{"format"} = - $form->{"format"} ? $form->{"format"} : - $myconfig{"template_format"} ? $myconfig{"template_format"} : - "pdf"; + $::form->{sendmode} = "attachment"; + $::form->{format} ||= $::myconfig{template_format} || "pdf"; + $::form->{copies} ||= $::myconfig{copies} || 2; - $form->{"copies"} = - $form->{"copies"} ? $form->{"copies"} : - $myconfig{"copies"} ? $myconfig{"copies"} : - 2; + $::form->{PD}{ $::form->{type} } = "selected"; + $::form->{DF}{ $::form->{format} } = "selected"; + $::form->{OP}{ $::form->{media} } = "selected"; + $::form->{SM}{ $::form->{sendmode} } = "selected"; - $form->{PD}{ $form->{type} } = "selected"; - $form->{DF}{ $form->{format} } = "selected"; - $form->{OP}{ $form->{media} } = "selected"; - $form->{SM}{ $form->{sendmode} } = "selected"; - - my ($media); - my $type = qq| -