From 7434efb99a7db6bb2054c99695913c2ea4bd8c6b Mon Sep 17 00:00:00 2001 From: miledivovic Date: Thu, 12 Jul 2018 10:25:58 -0700 Subject: [PATCH] Don't display empty or null framework descriptions #335 --- js/cass/cass-editor.js | 3 ++- js/viewFramework.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/cass/cass-editor.js b/js/cass/cass-editor.js index 49e85bc04..b3b35d272 100644 --- a/js/cass/cass-editor.js +++ b/js/cass/cass-editor.js @@ -97328,7 +97328,8 @@ populateFramework = function (subsearch) { frameworkDescription = EcArray.isArray(frameworkDescription) ? frameworkDescription : [frameworkDescription]; $("#editFrameworkSection #frameworkDescription").children().remove(); for (var i in frameworkDescription) { - $("#editFrameworkSection #frameworkDescription").append($('' + frameworkDescription[i] + '')); + if (frameworkDescription[i] != null && frameworkDescription[i] != 'NULL' && frameworkDescription[i] != '') + $("#editFrameworkSection #frameworkDescription").append($('' + frameworkDescription[i] + '')); } try { if (framework.getTimestamp() == null || isNaN(framework.getTimestamp())) diff --git a/js/viewFramework.js b/js/viewFramework.js index 4cbaa20ed..bf6dc4dc5 100644 --- a/js/viewFramework.js +++ b/js/viewFramework.js @@ -126,7 +126,8 @@ populateFramework = function (subsearch) { frameworkDescription = EcArray.isArray(frameworkDescription) ? frameworkDescription : [frameworkDescription]; $("#editFrameworkSection #frameworkDescription").children().remove(); for (var i in frameworkDescription) { - $("#editFrameworkSection #frameworkDescription").append($('' + frameworkDescription[i] + '')); + if (frameworkDescription[i] != null && frameworkDescription[i] != 'NULL' && frameworkDescription[i] != '') + $("#editFrameworkSection #frameworkDescription").append($('' + frameworkDescription[i] + '')); } try { if (framework.getTimestamp() == null || isNaN(framework.getTimestamp()))