Userpoints data not deleted if associated entity is deleted

Created on 22 August 2023, over 1 year ago

Problem/Motivation

If deleting an entity that is associated to a userpoints entity, the userpoints entity is not deleted, but the data is not needed anymore.

Steps to reproduce

1. Install the module
2. Create a userpoints type
3. Add a userpoints entity of that type and associate it to (e.g.) a user X
4. Delete the user X
5. The userpoints entity is not deleted

Proposed resolution

Hook into the entity deletion and delete all userpoints entities of that type

Remaining tasks

Implementation

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code: userpoints

Created by

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

Comments & Activities

Production build 0.71.5 2024