X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e0201a3f8f11b3a32f76b0c89eebb475e4798eca..e69e3657:/bin/mozilla/am.pl diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 239411840..0aac5a17f 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -2397,6 +2397,7 @@ sub edit_defaults { # get defaults for account numbers and last numbers AM->defaultaccounts(\%myconfig, \%$form); + $form->{ALL_UNITS} = AM->convertible_units(AM->retrieve_all_units(), 'g'); map { $form->{"defaults_${_}"} = $form->{defaults}->{$_} } keys %{ $form->{defaults} }; @@ -2855,7 +2856,7 @@ sub show_am_history { ( $form->{'searchid'} ? qq| WHERE snumbers = '| . $searchNo{$form->{'what2search'}} . qq|_| . $form->{'searchid'} . qq|'| : qq| WHERE snumbers ~ '^| . $searchNo{$form->{'what2search'}} . qq|'|); - my @ids = selectall_array_query($form, $dbh, $query); + my @ids = grep { $_ * 1 } selectall_array_query($form, $dbh, $query); my $daten .= shift @ids; $daten .= join '', map { " OR trans_id = $_" } @ids;