From 01f85c23e21cacd236d365d689788275d2046211 Mon Sep 17 00:00:00 2001 From: Alexey Sandler Date: Sat, 18 Apr 2020 14:45:11 +0300 Subject: empty lineOfBusiness value when create new network (old screens) - fix Issue-ID: VID-808 Signed-off-by: Alexey Sandler Change-Id: I9f77e449411afdf1553f890c1c6a94eaa34afc7e Signed-off-by: Alexey Sandler --- .../app/vid/scripts/services/creationService.js | 32 ++++------------------ 1 file changed, 5 insertions(+), 27 deletions(-) (limited to 'vid-app-common') diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js index 15ba51941..242a3dc8a 100755 --- a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js +++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js @@ -714,45 +714,23 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON break; case COMPONENT.VNF: - - requestDetails.requestInfo.productFamilyId = getValueFromList( - FIELD.ID.PRODUCT_FAMILY, parameterList); - - var lineOfBusiness = getValueFromList(FIELD.ID.LINE_OF_BUSINESS, parameterList); - - if(lineOfBusiness) { - requestDetails.lineOfBusiness = { - lineOfBusinessName: lineOfBusiness - }; - } - - requestDetails.platform = { - platformName: getValueFromList(FIELD.ID.PLATFORM, parameterList) - }; - - break; case COMPONENT.NETWORK: requestDetails.requestInfo.productFamilyId = getValueFromList( FIELD.ID.PRODUCT_FAMILY, parameterList); var lineOfBusiness = getValueFromList(FIELD.ID.LINE_OF_BUSINESS, parameterList); - if(lineOfBusiness) { - var lineOfBusinessNamesString = _.map(lineOfBusiness, "name").join(", "); - requestDetails.lineOfBusiness = { - lineOfBusinessName: lineOfBusinessNamesString + lineOfBusinessName: lineOfBusiness }; } var platform = getValueFromList(FIELD.ID.PLATFORM, parameterList); - if(platform !== null && platform !== ""){ - requestDetails.platform = { - platformName: platform - }; + if (platform !== null && platform !== "") { + requestDetails.platform = { + platformName: platform + }; } - - break; case COMPONENT.VF_MODULE: requestDetails.requestParameters.usePreload = getValueFromList( -- cgit 1.2.3-korg