From 414e228c81f66a2cd05b7a9af62fe4ef4b589589 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Tue, 9 Sep 2003 14:49:11 +0000 Subject: Fixed bug #5423: Some option settings were not be recognized or changed. --- perl-install/printer/printerdrake.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/printer/printerdrake.pm') diff --git a/perl-install/printer/printerdrake.pm b/perl-install/printer/printerdrake.pm index d8ce1472d..648028b10 100644 --- a/perl-install/printer/printerdrake.pm +++ b/perl-install/printer/printerdrake.pm @@ -2634,7 +2634,7 @@ You should make sure that the page size and the ink type/printing mode (if avail push(@{$choicelists[$i]}, $choice->{comment}); push(@{$shortchoicelists[$i]}, $choice->{value}); if ($choice->{value} eq $optshortdefault) { - push(@userinputs, $choice->{comment}); + $userinputs[$i] = $choice->{comment}; } } push(@widgets, @@ -2745,6 +2745,9 @@ You should make sure that the page size and the ink type/printing mode (if avail # line arguments @{$printer->{currentqueue}{options}} = (); for ($i = 0; $i <= $#{$printer->{ARGS}}; $i++) { + # We did not show hidden options, so we do not have user input + # to add to the option list + next if $printer->{ARGS}[$i]{hidden}; push(@{$printer->{currentqueue}{options}}, "-o"); if ($printer->{ARGS}[$i]{type} eq 'enum') { # enumerated option -- cgit v1.2.1