X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/43a9cf43dcdc7303af49430f5dd9d05cab30f30c..bfec2184531d2e9bf4b379b5b038dacd58a76a70:/SL/FU.pm diff --git a/SL/FU.pm b/SL/FU.pm index a2faf62f3..83ec776bc 100644 --- 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 = ?))|;