From df6bd30d0391aaf70ea84f4d5e7f088e2a48b858 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Fri, 21 May 2021 15:27:10 +0200 Subject: [PATCH] fix calendar totals for empty weeks (#2581) --- templates/calendar/user.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/calendar/user.html.twig b/templates/calendar/user.html.twig index 62fbc032..b15d5b84 100644 --- a/templates/calendar/user.html.twig +++ b/templates/calendar/user.html.twig @@ -390,7 +390,7 @@ {# TODO split day entries are calculated only for the begin date #} var $element = jQuery("#dailytotal-" + moment(event.start).format("YYYY-MM-DD")); var ids = $element.data('ids'); - if (ids === null) { + if (ids === null || ids === undefined) { ids = ''; }