From dc3d3e707934cd1f26bdc81b8b436f59156b8cc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Oct 2009 15:23:56 +0200 Subject: [PATCH] print_options: fieses refkonstrukt umgeschrieben. --- bin/mozilla/io.pl | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 6e18b5e2b..b796a7b10 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1193,10 +1193,17 @@ sub print_options { map { opthash($_->{id}, ($_->{id} eq $form->{printer_id} ? 'selected' : ''), $_->{printer_description}) } +{}, @{ $form->{printers} } if ((ref $form->{printers} eq 'ARRAY') && scalar @{ $form->{printers } }); - { - no strict 'refs'; - @SELECTS = map { sname => lc $_, DATA => \@$_, show => !$options{"hide_" . lc($_)} && scalar @$_ }, qw(FORMNAME LANGUAGE_ID FORMAT SENDMODE MEDIA PRINTER_ID); - } + @SELECTS = map { + sname => $_->[1], + DATA => $_->[0], + show => !$options{"hide_" . $_->[1]} && scalar @{ $_->[0] } + }, + [ \@FORMNAME, 'formname', ], + [ \@LANGUAGE_ID, 'language_id', ], + [ \@FORMAT, 'format', ], + [ \@SENDMODE, 'sendmode', ], + [ \@MEDIA, 'media', ], + [ \@PRINTER_ID, 'printer_id', ]; my %dont_display_groupitems = ( 'dunning' => 1, -- 2.20.1