]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/Helper/CustomVariables.pm
GetModels-Filtered: CVars: Überflüssige Umwandlung entfernt
[kivitendo-erp.git] / SL / DB / Helper / CustomVariables.pm
index 55ff12104c0d37fab7bc94c4eda4570790c7320b..fef521cfa19675a64adc0b73ff1b9502fdac65d4 100644 (file)
@@ -295,7 +295,6 @@ sub make_cvar_custom_filter {
       my $conversion  = $config->type =~ m{^(?:date|timestamp)$}       ? $config->type
                       : $config->type =~ m{^(?:customer|vendor|part)$} ? 'integer'
                       : $config->type eq 'number'                      ? 'numeric'
-                      # : $config->type eq 'bool'                        ? 'boolean'
                       :                                                  '';
 
       ($query{config}, $bind_vals{config}) = Rose::DB::Object::QueryBuilder::build_select(
@@ -329,7 +328,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;
       }