From a77594d5bb814a0ef2f2b7ef0e7df52992fb7259 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Tue, 16 Nov 2021 09:52:14 +0100 Subject: [PATCH] Fixes #3850 - If no date is set the UI show it's shown as NaN.NaN.NaN. --- .../app/controllers/_application_controller/_base.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller/_base.coffee b/app/assets/javascripts/app/controllers/_application_controller/_base.coffee index fb786a20f..c7a189014 100644 --- a/app/assets/javascripts/app/controllers/_application_controller/_base.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller/_base.coffee @@ -300,9 +300,10 @@ class App.Controller extends Spine.Controller frontendTimeUpdateItem: (item, currentVal) => timestamp = item.attr('datetime') - time = @humanTime(timestamp, item.hasClass('escalation')) + return if timestamp is 'null' # only do dom updates on changes + time = @humanTime(timestamp, item.hasClass('escalation')) return if time is currentVal newTitle = App.i18n.translateTimestamp(timestamp)