From: Sven Schöling Date: Fri, 11 Dec 2020 16:26:33 +0000 (+0100) Subject: Zeiterfassung: Defaultfilter: aktueller Benutzer, letzte 2 Wochen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~335 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=66acdc926ce630fcd60655da3ad10fd39029f16c;p=kivitendo-erp.git Zeiterfassung: Defaultfilter: aktueller Benutzer, letzte 2 Wochen --- 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;