X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fam.pl;h=28b1a52285ce0a2f7dd464dc6efb4a42c000d38e;hb=c2b72147f7142b47a49a6449db47046d5de3edf0;hp=73a2133d24c02c786da6309cbee690e37e44a240;hpb=9a194d6adb43e503eba75d2604d8081095ca1414;p=kivitendo-erp.git
diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl
index 73a2133d2..28b1a5228 100644
--- a/bin/mozilla/am.pl
+++ b/bin/mozilla/am.pl
@@ -328,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|