X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fam.pl;h=28b1a52285ce0a2f7dd464dc6efb4a42c000d38e;hb=590047d7bc7fa5312f8e4c36e3562c2507e3d8a7;hp=04b0e9adcaea55fc19cd81e7681efc41074e5ae9;hpb=554034c0587282b99d58cf42758b2f836367f2eb;p=kivitendo-erp.git
diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl
index 04b0e9adc..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|