From c4a682432dda2b3e3e9aea823dee83aa8e99f224 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 6 May 2021 17:36:05 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Eingabe:=20Dauer=20auf=200=20se?= =?utf8?q?tzen=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/TimeRecording.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1