From 54adaa6da95bfe933726e6509042d7ef36fa84cf Mon Sep 17 00:00:00 2001 From: Juhi Date: Tue, 30 May 2023 18:38:32 +0530 Subject: [PATCH] changes for group and external system --- src/main/java/org/sunbird/common/util/ProjectUtil.java | 2 +- .../java/org/sunbird/profile/service/UserBulkUploadService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sunbird/common/util/ProjectUtil.java b/src/main/java/org/sunbird/common/util/ProjectUtil.java index 00fab57e4..e6b1ef26f 100644 --- a/src/main/java/org/sunbird/common/util/ProjectUtil.java +++ b/src/main/java/org/sunbird/common/util/ProjectUtil.java @@ -153,7 +153,7 @@ public static Boolean validateLastName( String lastName ) { public static Boolean validateTag(List tags) { for (String tag : tags) { - if (!tag.matches("[a-zA-Z]*")) { + if (!tag.matches("[a-zA-Z ]*")) { return false; } } diff --git a/src/main/java/org/sunbird/profile/service/UserBulkUploadService.java b/src/main/java/org/sunbird/profile/service/UserBulkUploadService.java index cd1282d4a..fc3621f8b 100644 --- a/src/main/java/org/sunbird/profile/service/UserBulkUploadService.java +++ b/src/main/java/org/sunbird/profile/service/UserBulkUploadService.java @@ -196,6 +196,7 @@ private void processBulkUpload(HashMap inputDataMap) throws IOEx } } userRegistration.setOrgName(inputDataMap.get(Constants.ORG_NAME)); + userRegistration.setChannel(inputDataMap.get(Constants.ORG_NAME)); Cell statusCell = nextRow.getCell(8); Cell errorDetails = nextRow.getCell(9); if (statusCell == null) {