'View bestreply' is still displayed after a comment marked as best reply has been deleted.

Created on 29 March 2024, 8 months ago
Updated 30 March 2024, 8 months ago

Problem/Motivation

Deleting a comment that is currently marked as a bestreply, does not remove the entry from the database.

Steps to reproduce

  1. Create a node using a node type (e.g. Article) that supports comments.
  2. Add a comment or two to the node.
  3. Mark one of the comments as bestreply and note that it is linked correctly at the top via View Bestreply.
  4. Now delete the comment itself that has been marked as bestreply by clicking Delete and follow the prompts until it is deleted.
  5. Reload the node, and you should still see the View Bestreply link, although the node that was considered a bestreply has already been deleted.

Proposed resolution

Update the functionality so that when a comment is deleted, if it is also marked as the bestreply, the value will be cleared.

Remaining tasks

Implement a fix and commit the change.

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kevgrob

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024