diff options
author | c00149107 <chenchuanyu@huawei.com> | 2016-10-27 10:34:32 +0800 |
---|---|---|
committer | c00149107 <chenchuanyu@huawei.com> | 2016-10-27 10:34:32 +0800 |
commit | 12602352378ceb68202dd7265d0dcb1f0564d14c (patch) | |
tree | 2334df91cf7124ffbc7df3683ced9bd94a476576 | |
parent | b0cc467e43749aadbe2941f2fb851c38d3021882 (diff) |
fix issue:GSO-54
Change-Id: I1fad2dcbfb2ae8050786ba0f93c39cf7633ddc61
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
-rw-r--r-- | openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js | 4 | ||||
-rw-r--r-- | openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js | 4 |
2 files changed, 6 insertions, 2 deletions
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()
|