Wiedervorlagenbericht: Filter »erstellt für« gefixt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 27 Jul 2017 14:58:10 +0000 (16:58 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 27 Jul 2017 14:59:13 +0000 (16:59 +0200)
Das Filterkriterium wurde gar nicht ausgewertet.

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 = ?))|;