Revision 209f6291
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
bin/mozilla/io.pl | ||
---|---|---|
1498 | 1498 |
|
1499 | 1499 |
push @MEDIA, grep $_, |
1500 | 1500 |
opthash("screen", $form->{OP}{screen}, $locale->text('Screen')), |
1501 |
(scalar keys %{ $form->{printers} } && $latex_templates) ?
|
|
1501 |
(scalar @{ $form->{printers} } && $latex_templates) ?
|
|
1502 | 1502 |
opthash("printer", $form->{OP}{printer}, $locale->text('Printer')) : undef, |
1503 | 1503 |
($latex_templates) ? |
1504 | 1504 |
opthash("queue", $form->{OP}{queue}, $locale->text('Queue')) : undef |
... | ... | |
1521 | 1521 |
|
1522 | 1522 |
push @PRINTER_ID, |
1523 | 1523 |
map { opthash($_->{id}, ($_->{id} eq $form->{printer_id} ? 'selected' : ''), $_->{printer_description}) } +{}, @{ $form->{printers} } |
1524 |
if (ref $form->{printers} eq 'ARRAY');
|
|
1524 |
if ((ref $form->{printers} eq 'ARRAY') && scalar @{ $form->{printers } });
|
|
1525 | 1525 |
|
1526 | 1526 |
@SELECTS = map { sname => lc $_, DATA => \@$_, show => scalar @$_ }, qw(FORMNAME LANGUAGE_ID FORMAT SENDMODE MEDIA PRINTER_ID); |
1527 | 1527 |
|
1528 | 1528 |
%template_vars = ( |
1529 |
display_copies => scalar keys %{ $form->{printers} } && $latex_templates && $form->{media} ne 'email',
|
|
1529 |
display_copies => scalar @{ $form->{printers} } && $latex_templates && $form->{media} ne 'email',
|
|
1530 | 1530 |
display_remove_draft => (!$form->{id} && $form->{draft_id}), |
1531 | 1531 |
groupitems_checked => $form->{groupitems} ? "checked" : '', |
1532 | 1532 |
remove_draft_checked => $form->{remove_draft} ? "checked" : '' |
Auch abrufbar als: Unified diff
$form->{printers} ist ein Array, und kein Hash. Außerdem die Drucker-Drop-Down-Box nur dann anzeigen, wenn Drucker angelegt wurden.