X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Frp.pl;h=c2dcb28542bf632f4943331709b6192b053782e0;hb=19be3a57dbffa4a66be9f1cffdf5fc2a18332567;hp=cf5bad33aa4f9364e45ad71dfbc8f182746b5e5d;hpb=f46f64806e39e562d4e3577bac98e07c298754a4;p=kivitendo-erp.git diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index cf5bad33a..c2dcb2854 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -2637,7 +2637,16 @@ sub print_options { $lxdebug->enter_sub(); $form->{sendmode} = "attachment"; - $form->{copies} = 2 unless $form->{copies}; + + $form->{"format"} = + $form->{"format"} ? $form->{"format"} : + $myconfig{"template_format"} ? $myconfig{"template_format"} : + "pdf"; + + $form->{"copies"} = + $form->{"copies"} ? $form->{"copies"} : + $myconfig{"copies"} ? $myconfig{"copies"} : + 2; $form->{PD}{ $form->{type} } = "selected"; $form->{DF}{ $form->{format} } = "selected";