Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Emptied pagelist in cache is re-populated with deleted entries

SA-60687

Summary



While removing all items from a pagelist in a work object in the client cache, pagelist.remove(index) is invoked to remove the repopulated deleted entries.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a time and expense for any date, for example: 06/27/2018, with the following input:

    Work Type: Regular
    Start Time: 9:00 AM
    End Time: 5:00 PM

     
  2. Click the Add and the Next buttons.
  3. On the Mileage screen, select the No radio button and click Next.
  4. Click the Next button on the Summary screen.
  5. On Attest, check the checkbox and click the Attest button.
  6. Click the Yes button on the Submit screen.
  7. Create a second time and expense for the same date selected in Step 1 with the following input:

    Work Type: Overtime
    Check the 'I confirm the Overtime hours have been pre-approved by my supervisor' option.

     
  8. Add a time interval as below.

    Start Time: 6:00 PM
    End Time: 7:00 PM

     
  9. Add a second interval as below.

    Start Time: 7:00 PM
    End Time: 9:00 PM

     
  10. On Mileage, select the No radio button and click Next.
  11. On the Summary screen, click the Previous button till 'Date and Time' is reached.
  12. Delete the intervals added in Steps 8 and 9, and click Next.
  13. On the Mileage screen, enter the following values.

    Total Miles Driven: 10
    From: Work
    To: Home
    Do you have any additional expenses?: No

     
  14. Complete the submission of Time and Expense.
  15. On Time and Expense dashboard, reopen the second submission just completed. The two intervals continue to display on the Summary screen.


Root Cause



The getDiffSnapshot method in the pzpega_process_engine.js skipped the empty array properties such that data is not added to the diffSnapshot. This resulted in retrieving the past data of the pyWorkPage by the merge process during the sync.


Resolution



Apply HFix-45389.

Published March 29, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us