From 453a5b3b37d930236274d1e1459ea358df56a1b8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 17 Feb 2015 14:24:59 +0100 Subject: [PATCH] =?utf8?q?GetModels-Filtered:=20CVars:=20Fix=20f=C3=BCr=20?= =?utf8?q?Platzhaltern=20im=20Suchbegriff?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/CustomVariables.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1