Offene Forderungen/Verbindlichkeiten: bei Textfeldern führende/anhängende Whitespaces...
[kivitendo-erp.git] / SL / RP.pm
index 1875e0c..8fd73f2 100644 (file)
--- a/SL/RP.pm
+++ b/SL/RP.pm
@@ -1263,7 +1263,7 @@ sub aging {
   if ($form->{$ct_id}) {
     $where .= qq| AND (ct.id = | . conv_i($form->{$ct_id}) . qq|)|;
   } elsif ($form->{ $form->{ct} }) {
-    $where .= qq| AND (ct.name ILIKE | . $dbh->quote('%' . $form->{$ct} . '%') . qq|)|;
+    $where .= qq| AND (ct.name ILIKE | . $dbh->quote($::form->like($form->{$ct})) . qq|)|;
   }
 
   my $dpt_join;