From: Sven Schöling Date: Fri, 4 Sep 2009 08:58:57 +0000 (+0200) Subject: Bugfix: Historiensuchmaschine, nur echte ids aus der Datenbank suchen X-Git-Tag: release-2.6.1beta1~298 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f3086ca05027abfa6affcc8ffa0fe9f8d096b24a;p=kivitendo-erp.git Bugfix: Historiensuchmaschine, nur echte ids aus der Datenbank suchen Fix für Bug 1101. --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 684632679..0aac5a17f 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -2856,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;