diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-05-23 08:55:55 +0000 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-05-23 08:55:55 +0000 |
commit | 7d55439ad0a5665fe5e6b7c6db3111c34f50c680 (patch) | |
tree | 60f2b68d22275f86775256eb650fd35789d281bb /vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js | |
parent | 17532bb4f1f4600327a697355a1a66a5126fe506 (diff) |
Revert "Differentiate cloudRegions with same name and different owner"
This reverts commit 17532bb4f1f4600327a697355a1a66a5126fe506.
Issue-ID: VID-482
Change-Id: I513efb9bf20647bc9131bc2f46176b9c34961671
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js')
-rw-r--r-- | vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js index d65fd6fc2..6163184c2 100644 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/deleteResumeService.js @@ -413,7 +413,7 @@ var DeleteResumeService = function($log, AaiService, AsdcService, DataService, parameter.optionList = new Array(); for (var i = 0; i < cloudRegionTenantList.length; i++) { for (var j = 0; j < parameter.optionList.length; j++) { - if (parameter.optionList[j].id === cloudRegionTenantList[i].cloudId) { + if (parameter.optionList[j].id === cloudRegionTenantList[i].cloudRegionId) { parameter.optionList[j].isPermitted = parameter.optionList[j].isPermitted || cloudRegionTenantList[i].isPermitted; break; @@ -428,7 +428,7 @@ var DeleteResumeService = function($log, AaiService, AsdcService, DataService, cloudRegionTenantList[i].cloudRegionId; parameter.optionList.push({ - id : cloudRegionTenantList[i].cloudId, + id : cloudRegionTenantList[i].cloudRegionId, name: optionName, isPermitted : cloudRegionTenantList[i].isPermitted @@ -438,14 +438,14 @@ var DeleteResumeService = function($log, AaiService, AsdcService, DataService, return parameter; }; - var getTenantList = function(cloudId) { + var getTenantList = function(cloudRegionId) { var parameter = ""; var cloudRegionTenantList = DataService.getCloudRegionTenantList(); if ( UtilityService.hasContents (cloudRegionTenantList) ) { var parameter = FIELD.PARAMETER.TENANT_ENABLED; parameter.optionList = new Array(); for (var i = 0; i < cloudRegionTenantList.length; i++) { - if (cloudRegionTenantList[i].cloudId === cloudId) { + if (cloudRegionTenantList[i].cloudRegionId === cloudRegionId) { parameter.optionList.push({ id : cloudRegionTenantList[i].tenantId, name : cloudRegionTenantList[i].tenantName, |