X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/546480e0d8c4684288967aa54b80207d5c57a71a..292502ecb242bbea0033f5c3d562370be3533359:/SL/AM.pm diff --git a/SL/AM.pm b/SL/AM.pm index 1807678a4..fec1b038c 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -1669,7 +1669,7 @@ sub unit_select_data { push(@{$select}, { "name" => "", "base_unit" => "", "factor" => "", "selected" => "" }); } - foreach my $unit (sort({ $a->{"sortkey"} <=> $b->{"sortkey"} } keys(%{$units}))) { + foreach my $unit (sort({ $units->{$a}->{"sortkey"} <=> $units->{$b}->{"sortkey"} } keys(%{$units}))) { push(@{$select}, { "name" => $unit, "base_unit" => $units->{$unit}->{"base_unit"}, "factor" => $units->{$unit}->{"factor"}, @@ -1688,7 +1688,7 @@ sub unit_select_html { my $select = "