Skip to content

Commit

Permalink
Fix Uføre not getting picked
Browse files Browse the repository at this point in the history
  • Loading branch information
mamikals committed Feb 12, 2024
1 parent 8007381 commit 412955f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions force-app/main/default/classes/nksGetStoUtilityController.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @description :
* @author : mamikals
* @group :
* @last modified on : 26-01-2024
* @last modified on : 12-02-2024
* @last modified by : mamikals
**/
public without sharing class nksGetStoUtilityController {
Expand All @@ -17,15 +17,21 @@ public without sharing class nksGetStoUtilityController {
'Skjermede_personer'
};
private static final List<String> originSkills = new List<String>{ 'BTO', 'STO' };


private static final Map<String, String> stoThemeRenames = new Map<String, String>{ 'Ufør' => 'Ufoeretrygd' };

// Since Omni channel skills are org based, we want to only include skills that are used in STO
public static final List<String> allRelevantSkills {
get {
Schema.DescribeFieldResult fieldResult = Case.STO_Category__c.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
List<String> retList = new List<String>();
for (Schema.PicklistEntry pl : ple) {
retList.add(pl.getLabel());
if (stoThemeRenames.containsKey(pl.getLabel())) {
retList.add(stoThemeRenames.get(pl.getLabel()));
} else {
retList.add(pl.getLabel());
}
}
retList.addAll(confidentialitySkills);
retList.addAll((originSkills));
Expand Down

0 comments on commit 412955f

Please sign in to comment.