Wiedervorlagenbericht: Filter »erstellt für« gefixt
[kivitendo-erp.git] / SL / FU.pm
index a2faf62..83ec776 100644 (file)
--- a/SL/FU.pm
+++ b/SL/FU.pm
@@ -246,6 +246,10 @@ sub follow_ups {
     $where .= qq| AND (date_trunc('DAY', fu.itime) <= ?)|;
     push @values, conv_date($params{itime_to});
   }
+  if ($params{created_for}) {
+    $where .= qq| AND fu.created_for_user = ?|;
+    push @values, conv_i($params{created_for});
+  }
 
   if ($params{all_users}) {
     $where_user = qq|OR (fu.created_by IN (SELECT DISTINCT what FROM follow_up_access WHERE who = ?))|;