Support Article
Blank space persists when a comment is deleted from Pulse
SA-56736
Summary
Blank space persists when a comment is deleted from Pulse.
Error Messages
Not Applicable
Steps to Reproduce
- Open an instance and launch the Case Manager portal.
- Open Pulse.
- Add a pulse and delete it.
Root Cause
When a comment is deleted from Pulse, the 'pyPostDetails' div is removed by invoking the script code from the deletePost method in the 'pypega_social' JavaScript file. Post removal of 'pyPostDetails' div, the 'pzFeed' parent div is present in the Pulse. As a result, the blank space still persists.
Since the 'pypega_social' JavaScript file is a final rule, changes cannot be made to the file.
Resolution
Perform the following local-change:
Add the below script in the UserWorkForm and in the local action of the 'pyDeletePost' field. In the 'pyPulseMoreActions' menu, refer the 'deletePost' function name in the RunScript instead of 'pega.p.deletePost'. <script>
function deletePost(event,postType){
if(postType == 'post'){
$(event.target).closest("div[node_name=pzFeed]").parent().remove();
}
else if(postType == 'reply'){
$(event.target).closest("div[node_name=pyDisplayReply]").parent().remove();
}
}
</script>
Published July 23, 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.