Skip to content

[bug] Delete status of comment replies not update when parent comment is deleted #22

Open
@diderich

Description

@diderich

🐞 bug report

⁉️ Describe the bug

If a comment that has replies is deleted (moved to the recycle bin), neither the comment, nor the replies are visible any mode.

But the entity records in table vtiger_crmentityof the replies are not marked as deleted, i.e., vtiger_crmentity.deleted = 0, rather than 1.

This leads to incorrect results for example with widgets displaying the number of not deleted comments in summary_block.

🔥 How to trigger the error

Steps to reproduce the behavior:

  1. Go to any module with comments
  2. Create a comment
  3. Create a reply to the comment
  4. Delete the main comment
  5. View the record associated with the reply comment in table vtiger_crmentity and see that deleted = 0, rather than 1.

👎 Actual Behavior

If deleting (moving the the recycle bin) a comment, all replies to it become invisible, but the replies are not market as deleted in the database.

👍 Expected Behavior

If deleting (moving the the recycle bin) a comment, all replies are either marked deleted in the database or still displayed as comments, with a note that the parent comment was deleted.

👷 Testing

As the test systems do not allow to view the content of the database, it is impossible to validate the issue on the test installations.

📷 Screenshot of configuration

Not relevant.

🌍 Your Environment

Environment Version / Name
YetiForce 6.4.0
Service Pack version Service Pack 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions