projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ersatz fuer kvitendo css
[kivitendo-erp.git]
/
bin
/
mozilla
/
io.pl
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
60a535f
..
0d7601e
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-38,7
+38,7
@@
use Carp;
use CGI;
use Carp;
use CGI;
-use List::MoreUtils qw(uniq);
+use List::MoreUtils qw(
any
uniq);
use List::Util qw(min max first);
use SL::CVar;
use List::Util qw(min max first);
use SL::CVar;
@@
-1089,11
+1089,12
@@
sub print_options {
opthash("inline", $form->{SM}{inline}, $locale->text('In-line'))
if ($form->{media} eq 'email');
opthash("inline", $form->{SM}{inline}, $locale->text('In-line'))
if ($form->{media} eq 'email');
+ my $printable_templates = any { $::lx_office_conf{print_templates}->{$_} } qw(latex opendocument);
push @MEDIA, grep $_,
opthash("screen", $form->{OP}{screen}, $locale->text('Screen')),
push @MEDIA, grep $_,
opthash("screen", $form->{OP}{screen}, $locale->text('Screen')),
- ($
form->{printers} && scalar @{ $form->{printers} } && $::lx_office_conf{print_templates}->{latex
}) ?
+ ($
printable_templates && $form->{printers} && scalar @{ $form->{printers}
}) ?
opthash("printer", $form->{OP}{printer}, $locale->text('Printer')) : undef,
opthash("printer", $form->{OP}{printer}, $locale->text('Printer')) : undef,
- ($
::lx_office_conf{print_templates}->{latex}
&& !$options{no_queue}) ?
+ ($
printable_templates
&& !$options{no_queue}) ?
opthash("queue", $form->{OP}{queue}, $locale->text('Queue')) : undef
if ($form->{media} ne 'email');
opthash("queue", $form->{OP}{queue}, $locale->text('Queue')) : undef
if ($form->{media} ne 'email');