Ensure date in log window is always a string

The date can be null for example for record having been just created without
any modification later.

Closes #14142
This commit is contained in:
Cédric Krier
2025-08-01 10:20:59 +02:00
parent dec047d676
commit b6472c7a71
+3 -1
View File
@@ -935,12 +935,14 @@
if (date) {
date = Sao.common.format_datetime(
Sao.common.date_format() + ' %H:%M:%S', date);
} else {
date = '';
}
input = jQuery('<input/>', {
'readonly': true,
'class': 'form-control input-sm',
'aria-labelledby': label.attr('id'),
}).val(date || '').appendTo(cell);
}).val(date).appendTo(cell);
input.css('width', date.length + 'ch');
input.uniqueId();
});