Zeiterfassung: Eingabe: Dauer auf 0 setzen können
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 6 May 2021 15:36:05 +0000 (17:36 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Thu, 6 May 2021 15:36:05 +0000 (17:36 +0200)
SL/Controller/TimeRecording.pm

index 84f1814..d326522 100644 (file)
@@ -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);
     }