Change to the hr_caseCreation script include in Australia

Daria6
Mega Sage

 

There is a change to one line of code in the hr_caseCreation script include in Australia (for this scenario). This line used to have 'true' as the last parameter passed in but now that is gone. Due to this, the HR service template state value is not being written to the case when it is created manually from the backend and the field already has a default value. Example: state. State has a default value of 1 (Draft) for sn_hr_core_case. If you had set "Ready" in the HR service template, then the state would be Ready when the case is opened.

 

Anyone have any idea why this change was made? When I look at the Australia changes, I don't see this as one even though it is impactful.

 

Before Australia:

// Call applyBefore now so that fields with default values are overwritten by template, but user changes

// overwrite template still

if (template)

new sn_hr_core.hr_TemplateUtils().applyBefore(template, newTaskGr, true);

 

After upgrade:

new sn_hr_core.hr_TemplateUtils().applyBefore(template, newTaskGr);

 

I have adjusted the default value of the HR state to be 10 so it is fine now but it would have been nice to know there was a change to this. If anyone has seen this documented somewhere, please let me know.

5 REPLIES 5

Thanks. Seems that there is no reason for them removing it and instead they are saying it should be what it was before.. as a workaround.. doesn't make much sense to me.

Thanks for the article.