Error to delete a comment

Created on 19 October 2023, over 1 year ago

Problem/Motivation

When anyone try to delete a comment using the Ajax Comments module, the confirmation pop-up never close, an error has being shown at browser-console and the comment is deleted.

This problem happen because a batch is started by activity module to keep the notification updated with the main entity and when the Ajax Comments is be using the batch can't redirect to batch page, it should be keep to be return at th request, but it is be ignoring by batch validation.

Steps to reproduce

  1. Install and enable the Ajax Comments
  2. Create an event content and add a comments for them
  3. Access the new event as simple user and reply the comment added from before step
  4. Try to delete a comment and look the error at browser console
  5. Check if the notification was created and run the cron when it don't create
  6. Try to delete a comment and look the error at browser console

Proposed resolution

Applied a patch from Drupal Community to avoid the batch validation to redirect ajax request.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

11.10

Component

Code (back-end)

Created by

🇧🇷Brazil viniciusrp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024