Skip to content

[6.x] Fix current augmentation handling in users fieldtype - #14724

Merged
jasonvarga merged 4 commits into
6.xfrom
fix-eloquent-default-current-users-fieldtype
Jun 2, 2026
Merged

[6.x] Fix current augmentation handling in users fieldtype#14724
jasonvarga merged 4 commits into
6.xfrom
fix-eloquent-default-current-users-fieldtype

Conversation

@joshuablum

Copy link
Copy Markdown
Member

Normalizes the default: current config in the augment method so it resolves to User::current()?->id() before actually hitting the query. Fixes a potential database error when using Eloquent users with Postgres and UUIDs.

Closes #14723.

@joshuablum joshuablum changed the title Fix default: current on Users fieldtype and Eloquent/Postgres May 25, 2026
@jasonvarga jasonvarga changed the title [6.x] Fix default: current on Users fieldtype and Eloquent/Postgres May 26, 2026
@jasonvarga jasonvarga changed the title [6.x] Fix default: current on Users fieldtype May 26, 2026
@jasonvarga
jasonvarga merged commit 9f0e61e into 6.x Jun 2, 2026
18 checks passed
@jasonvarga
jasonvarga deleted the fix-eloquent-default-current-users-fieldtype branch June 2, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants