Vote #80679
完了Editing a time entry for a locked user changes the user to the current user
0%
説明
Steps to reproduce:
- Add a time entry for another user (B)
- Lock that user (B)
- Edit the time entry
- Observe that field User is selected with "me". !{border: 1px solid grey; width: 20%}.me.png!
Saving the time entry, it will lose the user.
journals
--------------------------------------------------------------------------------
I see two options to fix this:
1. We don't allow changing the user when the time entry is logged on a locked user.
2. We add the locked user to the list of users.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> I see two options to fix this:
>
> 1. We don't allow changing the user when the time entry is logged on a locked user.
> 2. We add the locked user to the list of users.
I think the second option is better because the limitation suggested in option 1 may confuse users. In my opinion, there is no reason to disallow changing the user when the user of the time entry is locked.
--------------------------------------------------------------------------------
Here is the fix for the second option, but I would like a double check on the solution. The second patch renames and reorders the test added in #32959.
All tests pass: https://gitlab.com/redmine-org/redmine/pipelines/116292306
--------------------------------------------------------------------------------
Committed and merged, thanks!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,3848,Permission to log time for another user
relates,Closed,33341,Time entry user is shown twice in the User drop-down when editing spent time