Support Article
Dirty popup behavior is inconsistent
SA-65139
Summary
In a screen dirty modal displays as a window alert and in another screen the modal dialog displays. This occurs in the Chrome browser.
Error Messages
Not Applicable
Steps to Reproduce
Not Applicable
Root Cause
A defect in Pegasystems’ code or rules :
The issue occurred because the below code was used in closeWork API in pzpega_ui_doc_lifecycle js
event = event == undefined ? window.event : event;
window.event does not display in some cases in Chrome due to which a browser alert is displayed.
Chrome (Non-working):
Internet Explorer(working):
Resolution
Perform the following local-change:
In the UserWorkForm, override pega.u.d.isFormDirty as below,
<script>
pega.u.d.isFormDirty = function(bPrompt, fromCloseWork, ev, onlyMdcDocs) {
ev = ev || {}; added this extra line in overriden function ....
}
</script>
Published December 4, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.