Notifications

3 views

Description

Service Portal - List & form page does not display attachments on a record after the first view when navigating between records

Steps to Reproduce

  1. Add an attachment to an incident record
  2. Navigate to /sp?id=lf&t=incident
  3. Click and view the incident from step 2 and note the attachment is shown at the top of the record
  4. Now click on another incident record
  5. View the incident record from step 2 again and noticed no attachment is displayed

Workaround

In the spAttachmentManager provider (sp_angular_provider record), change this:

_____________________________________

attachmentHandler.getAttachments().then(function(response) {
    $scope.attachments = response;
});

cacheMap[key] = {
    handler: attachmentHandler,
    attachments: $scope.attachments
};

_____________________________________

to this:

_____________________________________

attachmentHandler.getAttachments().then(function(response) {
    $scope.attachments = response;
    cacheMap[key] = {
        handler: attachmentHandler,
        attachments: $scope.attachments
    };
});

_____________________________________

Revert to out-of-box version of this provider after upgrading to a release w/ the fix for this Problem.


Related Problem: PRB1349622

Seen In

There is no data to report.

Intended Fix Version

Orlando

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-01-14 12:27:05
Published:2020-01-14