From 1ae9e9eb622f9a3b19034c4eee670d83fa9dedb8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 21 Jan 2022 14:24:55 +0300 Subject: [PATCH] [SSE] For Bug 55011 --- apps/common/main/lib/view/OpenDialog.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 0934a73d9..1a1681619 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -484,16 +484,18 @@ define([ if (this.type == Common.Utils.importTextType.CSV || this.type == Common.Utils.importTextType.Paste || this.type == Common.Utils.importTextType.Columns || this.type == Common.Utils.importTextType.Data) { var maxlength = 0; for (var i=0; imaxlength) - maxlength = data[i].length; + var str = data[i] || ''; + if (str.length>maxlength) + maxlength = str.length; } var tpl = ''; for (var i=0; i'; + for (var j=0; j'; } - for (j=data[i].length; j'; + var str = data[i] || ''; + tpl += ''; } tpl += '
' + Common.Utils.String.htmlEncode(str) + '
'; }