From 42fdace947f996a4fd267caaf32f87f9de6a66cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sun, 1 Feb 2026 20:41:52 +0100 Subject: [PATCH] Fix display of timestamp after inline edit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old value was being replaced by an empty string instead of the new value because the timestamp value has no decimals. Signed-off-by: Maximilian Krög --- js/src/makegrid.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/src/makegrid.js b/js/src/makegrid.js index 4fb677d676..54bef74551 100644 --- a/js/src/makegrid.js +++ b/js/src/makegrid.js @@ -708,7 +708,10 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid // remove decimal places if column type not supported if ((decimals === 0) && ($thisField.attr('data-type').indexOf('time') !== -1)) { - newHtml = newHtml.substring(0, newHtml.indexOf('.')); + var index = newHtml.indexOf('.'); + if (index !== -1) { + newHtml = newHtml.substring(0, index); + } } // remove additional decimal places