Description
🐞 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_crmentity
of 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:
- Go to any module with comments
- Create a comment
- Create a reply to the comment
- Delete the main comment
- View the record associated with the reply comment in table
vtiger_crmentity
and see thatdeleted = 0
, rather than1
.
👎 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 |