From bd1ece25ff151772844eb6318f02ade2470602db Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 26 Aug 2011 10:52:15 +0200 Subject: [PATCH] =?utf8?q?Erm=C3=B6glichen,=20keinen=20Drucker=20als=20Sta?= =?utf8?q?ndarddrucker=20auszuw=C3=A4hlen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/am.pl | 11 ++--------- templates/webpages/am/config.html | 8 ++------ 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index ff0af8b10..368a62716 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1552,7 +1552,7 @@ sub edit_defaults { # default language my $all_languages = SL::DB::Manager::Language->get_all; -# EÜR = cash, Bilanzierung = accrual +# EÜR = cash, Bilanzierung = accrual foreach my $key (keys %{ $form->{IC} }) { foreach my $accno (sort keys %{ $form->{IC}->{$key} }) { @@ -1660,14 +1660,7 @@ sub config { { 'name' => $locale->text('Queue'), 'value' => 'queue', 'selected' => $selected{queue}, }, ]; - $form->{PRINTERS} = []; - foreach my $printer (SL::Printer->all_printers(%::myconfig)) { - push @{ $form->{PRINTERS} }, { - 'name' => $printer->{printer_description}, - 'value' => $printer->{id}, - 'selected' => $printer->{id} == $myconfig{default_printer_id}, - }; - } + $form->{PRINTERS} = [ SL::Printer->all_printers(%::myconfig) ]; my %countrycodes = User->country_codes; diff --git a/templates/webpages/am/config.html b/templates/webpages/am/config.html index 31cd43264..9c22678a2 100644 --- a/templates/webpages/am/config.html +++ b/templates/webpages/am/config.html @@ -1,6 +1,6 @@ [%- USE T8 %] [%- USE LxERP %] -[% USE HTML %] +[% USE HTML %][% USE L %]

[% title %]
@@ -200,11 +200,7 @@ [% 'Default printer' | $T8 %] - + [% L.select_tag('default_printer_id', L.options_for_select(PRINTERS, default => myconfig_default_printer_id, title => 'printer_description', with_empty => 1)) %] -- 2.20.1