projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128deb5
)
get_bank_info: SQL Fehler bei mehr als einer id.
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 5 Nov 2009 14:07:38 +0000
(15:07 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 5 Nov 2009 14:07:55 +0000
(15:07 +0100)
Fix für 1238.
SL/CT.pm
patch
|
blob
|
history
diff --git
a/SL/CT.pm
b/SL/CT.pm
index
12df265
..
1b9d915
100644
(file)
--- 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})|;