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

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

  1. Open an instance and launch the Case Manager portal.
  2. Open Pulse.
  3. 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

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