From: Bernd Bleßmann Date: Thu, 6 May 2021 15:36:05 +0000 (+0200) Subject: Zeiterfassung: Eingabe: Dauer auf 0 setzen können X-Git-Tag: kivitendo-mebil_0.1-0~9^2~256 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4a682432dda2b3e3e9aea823dee83aa8e99f224;p=kivitendo-erp.git Zeiterfassung: Eingabe: Dauer auf 0 setzen können --- diff --git a/SL/Controller/TimeRecording.pm b/SL/Controller/TimeRecording.pm index 84f1814bd..d326522be 100644 --- a/SL/Controller/TimeRecording.pm +++ b/SL/Controller/TimeRecording.pm @@ -165,7 +165,7 @@ sub init_time_recording { my %attributes = %{ $::form->{time_recording} || {} }; if ($self->use_duration) { - if ($::form->{duration_h} || $::form->{duration_m}) { + if (exists $::form->{duration_h} || exists $::form->{duration_m}) { $attributes{duration} = _round_number(_parse_number($::form->{duration_h}) * 60 + _parse_number($::form->{duration_m}), 0); }