Skip to content

Commit 73e1fd1

Browse files
Sahil-tarentosreerag-tarentoshankaragoudab
authored
Cbrelease 4.8.32.1 (#233)
* KB-13041 : Fix - Not all courses mapped to cb plan shown in my igot c… (#230) * KB-13041 : Fix - Not all courses mapped to cb plan shown in my igot courses * Review Changes * Review Changes * Review Changes * KB-13094 Enabling Org specific 'Custom Fields' into Access Settings in Training Plan (#232) --------- Co-authored-by: sreerag-tarento <sreerag.sajeesh@tarento.com> Co-authored-by: shankaragoudab <140387294+shankaragoudab@users.noreply.github.com>
1 parent bd8eb6a commit 73e1fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/igot/cb/service/CbPlanLearnerServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,12 @@ private void getExistingContextData(String userId, String rootOrgId, Map<String,
518518
for (Map<String, Object> customFields : customFieldValuesList) {
519519
String type = (String) customFields.get(Constants.TYPE);
520520
if (Constants.TEXT.equalsIgnoreCase(type)) {
521-
userProfile.put((String) customFields.get(Constants.ATTRIBUTE_NAME), (String) customFields.get(Constants.VALUE));
521+
userProfile.put(((String) customFields.get(Constants.ATTRIBUTE_NAME)).toLowerCase(), (String) customFields.get(Constants.VALUE));
522522
} else if (Constants.MASTER_LIST.equalsIgnoreCase(type)) {
523523
List<Map<String, Object>> valuesList = (List<Map<String, Object>>) customFields.get(Constants.VALUES);
524524
if (CollectionUtils.isNotEmpty(valuesList)) {
525525
for (Map<String, Object> valueMap : valuesList) {
526-
userProfile.put((String) valueMap.get(Constants.ATTRIBUTE_NAME), (String) valueMap.get(Constants.VALUE));
526+
userProfile.put(((String) valueMap.get(Constants.ATTRIBUTE_NAME)).toLowerCase(), (String) valueMap.get(Constants.VALUE));
527527
}
528528
}
529529
}

0 commit comments

Comments
 (0)