Skip to content

Commit

Permalink
Merge pull request #571 from navikt/getStoLabel
Browse files Browse the repository at this point in the history
Display name for pick STO skill
  • Loading branch information
mamikals authored Feb 13, 2024
2 parents 1940e84 + 70c6680 commit a6cec5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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 : 12-02-2024
* @last modified on : 13-02-2024
* @last modified by : mamikals
**/
public without sharing class nksGetStoUtilityController {
Expand Down Expand Up @@ -197,7 +197,7 @@ public without sharing class nksGetStoUtilityController {
GroupedSkills retSkills = new GroupedSkills();

for (ServiceResourceSkill srs : [
SELECT SkillId, Skill.DeveloperName
SELECT SkillId, Skill.DeveloperName, Skill.MasterLabel
FROM ServiceResourceSkill
WHERE
ServiceResource.RelatedRecordId = :userId
Expand All @@ -214,7 +214,7 @@ public without sharing class nksGetStoUtilityController {
retSkills.userOriginMap.put(srs.SkillId, srs.Skill.DeveloperName);
} else {
if (filteredSkillId == null || filteredSkillId == srs.SkillId) {
retSkills.skillMap.put(srs.SkillId, srs.Skill.DeveloperName);
retSkills.skillMap.put(srs.SkillId, srs.Skill.MasterLabel);
}
}
}
Expand Down

0 comments on commit a6cec5f

Please sign in to comment.