From 12602352378ceb68202dd7265d0dcb1f0564d14c Mon Sep 17 00:00:00 2001 From: c00149107 Date: Thu, 27 Oct 2016 10:34:32 +0800 Subject: fix issue:GSO-54 Change-Id: I1fad2dcbfb2ae8050786ba0f93c39cf7633ddc61 Signed-off-by: c00149107 --- .../portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 4 ++++ .../portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'openo-portal/portal-lifecyclemgr/src/main') diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js index 7d3b5d23..b8e99b19 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js @@ -184,6 +184,10 @@ function fetchGsoNestingTemplateParameters(templateId) { nestingParasAggregatation.notify(oneNodeParameters); }); serviceTemplates.forEach(function(serviceTemplate) { + if(serviceTemplate == null || serviceTemplate == undefined) + { + return []; + } var inputs = serviceTemplate.inputs.map(function(input) { input.name = nodeTemplate.type + '.' + input.name; return input; diff --git a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js index ae8a0474..7590bdf7 100644 --- a/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js +++ b/openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js @@ -85,7 +85,7 @@ $(function () { }); return o; }; - + /* $('#createNS').click(function(){ var formData = JSON.stringify($("#neForm").serializeObject()); var jsonobj = JSON.parse(formData); @@ -110,7 +110,7 @@ $(function () { alert("Error on page : " + xhr.responseText); } }); - }); + });*/ //init the templates combo $.when( generateTemplatesComponent() -- cgit 1.2.3-korg