Notifications

113 views

Description

HR tasks with type "Submit Order Guide" may generate a null pointer exception on the Service Portal "hrj_ticket_page".

Steps to Reproduce

1. Set the glide.sc.sp.twostep property to false.
2. Install Employee Service Center and Lifecycle Events. Kick off a lifecycle event that includes a "Submit Order Guide" task.
3. Impersonate the user with subject person associated to the HR task.
4. Open the record in "hrj_ticket_page" as the subject person.
5. Submit the order guide. Observe the null pointer exception.

Workaround

After carefully considering the severity and frequency of the issue, and the cost and risk of attempting a fix, it has been decided to not address this issue in any current or near future releases. We do not make this decision lightly, and we apologize for any inconvenience.

The workaround consists in the following:

  • Set the property "glide.sc.sp.twostep" to true


Or in alternative:

 

  1. In the SC Order Guide widget, replace:
    data.sys_id = $sp.getParameter("sys_id");

    with:
    if (input)
    data.sys_id = input.sys_id;
    else if (options.sys_id)
    data.sys_id = options.sys_id;
    else
    data.sys_id = $sp.getParameter("sys_id")
  2. In the SC order Guide widget, under the following line in the client controller:
    $scope.data.action = 'checkout_guide';

    add:
    $scope.data.requested_for_id = c.options.requested_for_id;


    and under the following line in the server script:
    cartJS.activateGuide();

    add:
    cartJS.setRequestedFor(input.requested_for_id);


  3. In the HRJ Task Submit Order Guide widget, in the client controller, change the following line:
    $scope.data.childCaseId = childCase.sys_id;

    to:
    $scope.data.childCaseId = childCase.sys_id || childCase.request_id;



Related Problem: PRB1346339

Seen In

SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - PA Premium Integration - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Policy and Compliance PA Content - Madrid 2019 Q1
SR - IRM - Risk Management - New York 2019 Q3
SR - IRM - Risk Management PA Content - Madrid 2019 Q1
SR - IRM - Vendor Risk Management - Madrid 2019 Q1
SR - ITOM - Fundamentals Istanbul Jakarta Kingston r1 - v5.99.6
SR - Security - Integration Framework - Madrid 2019 Q2
SR - Security - Support Common - Madrid 2019 Q2
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Store SecOps Setup Assistant - Madrid 2019 Q2
SR - SIR - Store Threat Core - Madrid 2019 Q2
SR - SIR - Store Trusted Security Circles Client - New York 2019 Q3

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-10-29 13:45:08
Published:2019-07-19