-
-
Notifications
You must be signed in to change notification settings - Fork 607
Open
Description
Bug description
It's possible to set the default value of a users fieldtype to current to be able to set the currently logged-in user as the default value.
However, current isn't an option in the dropdown when you use the UI. You have to do it through the yaml file.
Also, if you do it through the yaml file, and then open up the UI, the current user is selected (good) but then when you save the field, it hard codes the current user's ID as the new default value.
How to reproduce
First
- Create/edit blueplueprint
- Add/edit
usersfield - See
currentis missing from the "Default" field options. - In the yaml, set
default: current - Edit the
usersfield in the UI again. - The current user is selected.
- Save
- See that the current user is hardcoded into the blueprint
Logs
No response
Environment
Statamic 4.24.0Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels