From: Bernd Bleßmann Date: Mon, 26 Apr 2021 11:43:55 +0000 (+0200) Subject: Zeiterfassung: Lieferschein new_from_time_recording: undef-Warnung vermeiden X-Git-Tag: kivitendo-mebil_0.1-0~9^2~303 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d1a7b626e6b6b87539643016a2227c632e64e62b;p=kivitendo-erp.git Zeiterfassung: Lieferschein new_from_time_recording: undef-Warnung vermeiden --- diff --git a/SL/DB/DeliveryOrder.pm b/SL/DB/DeliveryOrder.pm index 039310b20..1e0cb49b5 100644 --- a/SL/DB/DeliveryOrder.pm +++ b/SL/DB/DeliveryOrder.pm @@ -231,7 +231,8 @@ sub new_from_time_recordings { ? nhimult(0.25, ($source->duration_in_hours)) : _round_total($source->duration_in_hours); # add content if not already in description - my $new_description = $source->description_as_stripped_html; + my $new_description = '' . $source->description_as_stripped_html; + $entries->{$part_id}->{$date}->{content} ||= ''; $entries->{$part_id}->{$date}->{content} .= '
  • ' . $new_description . '
  • ' unless $entries->{$part_id}->{$date}->{content} =~ m/\Q$new_description/;