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:
+3
-1
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user