Skip to content
Snippets Groups Projects
Commit ca405037 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_file_lister_descLines_undefined_fix' into 'master'

DDFileLister: (Hopefully) Fix for descLines being undefined in getFileInfoLineArrayForTraditionalUI()

See merge request !428
parents 67354173 712ff6e7
No related branches found
No related tags found
2 merge requests!455Update branch with changes from master,!428DDFileLister: (Hopefully) Fix for descLines being undefined in getFileInfoLineArrayForTraditionalUI()
...@@ -113,6 +113,8 @@ ...@@ -113,6 +113,8 @@
* Screen refresh fix: When printing the empty lines after an extended * Screen refresh fix: When printing the empty lines after an extended
* description, ensure the whole line width is used (the last character * description, ensure the whole line width is used (the last character
* was being left there when it should have been written over with a space) * was being left there when it should have been written over with a space)
* 2024-03-22 Eric Oulashin Version 2.20
* (Hopefully) Fix for descLines being undefined in getFileInfoLineArrayForTraditionalUI()
*/ */
"use strict"; "use strict";
...@@ -158,8 +160,8 @@ require("attr_conv.js", "convertAttrsToSyncPerSysCfg"); ...@@ -158,8 +160,8 @@ require("attr_conv.js", "convertAttrsToSyncPerSysCfg");
// Lister version information // Lister version information
var LISTER_VERSION = "2.19"; var LISTER_VERSION = "2.20";
var LISTER_DATE = "2024-03-11"; var LISTER_DATE = "2024-03-22";
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
...@@ -5093,6 +5095,8 @@ function getFileInfoLineArrayForTraditionalUI(pFileList, pIdx, pFormatInfo) ...@@ -5093,6 +5095,8 @@ function getFileInfoLineArrayForTraditionalUI(pFileList, pIdx, pFormatInfo)
if (pFileList[pIdx].hasOwnProperty("desc") && typeof(pFileList[pIdx].desc) === "string") if (pFileList[pIdx].hasOwnProperty("desc") && typeof(pFileList[pIdx].desc) === "string")
descLines = [ pFileList[pIdx].desc.replace(/\r$/, "").replace(/\n$/, "").replace(/\r\n$/, "") ]; descLines = [ pFileList[pIdx].desc.replace(/\r$/, "").replace(/\n$/, "").replace(/\r\n$/, "") ];
} }
if (!Array.isArray(descLines))
descLines = [];
if (descLines.length == 0) if (descLines.length == 0)
descLines.push(""); descLines.push("");
......
Digital Distortion File Lister Digital Distortion File Lister
Version 2.19 Version 2.20
Release date: 2024-03-11 Release date: 2024-03-22
by by
......
...@@ -5,6 +5,7 @@ Revision History (change log) ...@@ -5,6 +5,7 @@ Revision History (change log)
============================= =============================
Version Date Description Version Date Description
------- ---- ----------- ------- ---- -----------
2.20 2024-03-22 (Hopefully) Fix for descLines undefined error
2.19 2024-03-11 File description refresh fixes when using extended 2.19 2024-03-11 File description refresh fixes when using extended
descriptions (along with an updated dd_lightbar_menu.js) descriptions (along with an updated dd_lightbar_menu.js)
2.18 2024-03-08 Bug fix: Got description search working when used as a 2.18 2024-03-08 Bug fix: Got description search working when used as a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment