From: Moritz Bunkus Date: Tue, 17 Feb 2015 13:24:59 +0000 (+0100) Subject: GetModels-Filtered: CVars: Fix für Platzhaltern im Suchbegriff X-Git-Tag: release-3.2.1~51^2~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=453a5b3b37d930236274d1e1459ea358df56a1b8;p=kivitendo-erp.git GetModels-Filtered: CVars: Fix für Platzhaltern im Suchbegriff --- diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index 55ff12104..2810c5099 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -329,7 +329,7 @@ sub make_cvar_custom_filter { $query{$key} =~ s{\bt\d+(?:\.)?\b}{}g; # manually inline the values. again, rose doen't know how to handly bind params in subqueries :( - $query{$key} =~ s{\?}{ $config->dbh->quote($_) }xe for @{ $bind_vals{$key} }; + $query{$key} =~ s{\?}{ $config->dbh->quote(shift @{ $bind_vals{$key} }) }xeg; $query{$key} =~ s{\n}{ }g; }