From 2d63ba7e668c2c976c1c2d60f2fa28f2f4881267 Mon Sep 17 00:00:00 2001 From: c00149107 Date: Thu, 20 Apr 2017 15:36:24 +0800 Subject: Replace invalid id by valid id Replace invalid id by valid id Change-Id: Ia9e656750055e27d95d4ec73a672b07250854154 Issue-ID:CLIENT-192 Signed-off-by: c00149107 --- lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lifecyclemgr') diff --git a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js index f2ff5483..85c7058b 100644 --- a/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js +++ b/lifecyclemgr/src/main/webapp/lifecyclemgr/js/DataService.js @@ -364,7 +364,9 @@ function collectParamValue(identify, param) { * @returns */ function getParamId(identify, param) { - return '' ===identify ? param.name : identify + '_' + param.name; + var tmpname = param.name.replace(/-/g, '_'); + var tmpname1 = tmpname.replace(/./g, '_'); + return '' ===identify ? tmpname1 : identify + '_' + tmpname1; } /** -- cgit 1.2.3-korg