X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fam.pl;h=8f380aa20238e34b61d311c3e4fafd3ed32d2aba;hb=0c19f07b648830f552b949573031894d3cbe4543;hp=2394118405ff9d1d6545537b7bb937c625fc1bba;hpb=77230cde1f9588050247a8a094d2f8bbbb42d563;p=kivitendo-erp.git diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 239411840..8f380aa20 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} }; @@ -2507,7 +2508,6 @@ sub config { %countrycodes = User->country_codes; - $countrycodes{""} = "American English"; $form->{COUNTRYCODES} = []; foreach $countrycode (sort { $countrycodes{$a} cmp $countrycodes{$b} } keys %countrycodes) { push @{ $form->{COUNTRYCODES} }, { @@ -2855,7 +2855,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;