Actions
Defect #41572
open`updated_by_id` in Journal retains deleted user id instead of being set to `User.anonymous`
Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
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
Related issues
Actions