Actions
Defect #41572
closed`updated_by_id` in Journal retains deleted user id instead of being set to `User.anonymous`
Defect #41572:
`updated_by_id` in Journal retains deleted user id instead of being set to `User.anonymous`
Resolution:
Fixed
Affected version:
Description
In the current implementation of the Redmine Journal model, the updated_by_id field stores the id of the user who last edited the notes. However, if the user associated with this id is deleted, the id remains pointing to the deleted user.
To ensure consistent behavior across Redmine, the updated_by_id should be set to User.anonymous.id when the associated user is deleted.
Steps to Reproduce:
1. Create an issue and add a notes to it.
2. Edit the notes as a specific user, which will set the updated_by_id.
3. Delete the user who last edited the notes.
4. Query the Journal model and check the updated_by_id field. The expected value is User.anonymous.id, however, it retains the deleted user's id.
Files
Actions

