From 66acdc926ce630fcd60655da3ad10fd39029f16c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 11 Dec 2020 17:26:33 +0100 Subject: [PATCH] Zeiterfassung: Defaultfilter: aktueller Benutzer, letzte 2 Wochen --- SL/Controller/TimeRecording.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index e914236b4..0a171a61a 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -43,6 +43,11 @@ my %sort_columns = ( sub action_list { my ($self, %params) = @_; + $::form->{filter} //= { + staff_member_id => SL::DB::Manager::Employee->current->id, + "start_time:date::ge" => DateTime->now_local->add(weeks => -2)->to_kivitendo, + }; + $self->setup_list_action_bar; $self->make_filter_summary; $self->prepare_report; -- 2.20.1