From: Sven Schöling Date: Thu, 5 Nov 2009 14:07:38 +0000 (+0100) Subject: get_bank_info: SQL Fehler bei mehr als einer id. X-Git-Tag: release-2.6.1beta1~122 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9e1590312f1b6f1ea5e67be9fac3cc471cd86415;p=kivitendo-erp.git get_bank_info: SQL Fehler bei mehr als einer id. Fix für 1238. --- diff --git a/SL/CT.pm b/SL/CT.pm index 12df265d8..1b9d91593 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -1071,7 +1071,7 @@ sub get_bank_info { my $table = $params{vc} eq 'customer' ? 'customer' : 'vendor'; my @ids = ref $params{id} eq 'ARRAY' ? @{ $params{id} } : ($params{id}); - my $placeholders = ('?') x scalar @ids; + my $placeholders = join ", ", ('?') x scalar @ids; my $query = qq|SELECT id, name, account_number, bank, bank_code, iban, bic FROM ${table} WHERE id IN (${placeholders})|;