summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-lifecyclemgr
diff options
context:
space:
mode:
Diffstat (limited to 'openo-portal/portal-lifecyclemgr')
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/gsolcm.js2
-rw-r--r--openo-portal/portal-lifecyclemgr/src/main/webapp/lifecyclemgr/js/rest.js9
2 files changed, 10 insertions, 1 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 37cb05f3..a9eba6f2 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
@@ -142,7 +142,7 @@ function translateToTemplateParameters(inputs) {
defaultValue: inputs[i].defaultValue,
required: inputs[i].required,
id: 'parameter_' + i,
- value: inputs[i].defaultValue
+ value: inputs[i].defaultValue || ''
};
}
return {changed: false, parameters: inputParameters};
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 a05271bc..ae8a0474 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
@@ -171,12 +171,21 @@ function loadGetServiceData(){
var returnVal;
var requestUrl = "/openoapi/inventory/v1/services";
+ var parameter = {
+ 'sort': [],
+ 'pagination': 0,
+ 'pagesize': 25,
+ 'condition': {},
+ 'serviceId': ""
+ };
$
.ajax({
type : "POST",
url : requestUrl,
async: false,
contentType : "application/json",
+ dataType: "json",
+ data: JSON.stringify(parameter),
success : function(jsonobj) {
// TODO return according to the json data received.
returnVal = jsonobj;