X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fam.pl;h=7549bc1610a2d0cf4efc35e51d39a5c677e195fb;hb=c068de1b9ec5eebe34ba76af1e1445dbb9564c70;hp=b6996d169b1e34edda36daa47affa331d5e93f0c;hpb=74fca575d438232002756175338c23f55b8a6c12;p=kivitendo-erp.git
diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl
index b6996d169..7549bc161 100644
--- a/bin/mozilla/am.pl
+++ b/bin/mozilla/am.pl
@@ -43,7 +43,6 @@ use SL::USTVA;
use SL::Iconv;
use SL::TODO;
use SL::Printer;
-use CGI::Ajax;
use CGI;
require "bin/mozilla/common.pl";
@@ -329,21 +328,18 @@ sub account_header {
}
# preselection chart type
- my $select_charttype = q{};
-
- my %charttype = (
- 'A' => $locale->text('Account'),
- 'H' => $locale->text('Heading'),
- );
+ my @all_charttypes = ({'name' => $locale->text('Account'), 'value' => 'A'},
+ {'name' => $locale->text('Heading'), 'value' => 'H'},
+ );
+ my $selected_charttype = $form->{charttype};
- foreach my $item ( sort({ $a <=> $b } keys %charttype) ) {
- if ($item eq $form->{charttype}) {
- $select_charttype .= qq|