Forums Bug Reports Thread

Learn: cohort owner should accept a username (or default to current user), not a user ID

Patrick Bass · Jun 6 · 8 · 1 Locked
[Minor] [Normal Priority] [Bug Fixed] [Always Reproduces]
🚀 OP Jun 6, 2026 4:38pm

Where. /admin/learn/cohorts/new

Issue. The cohort owner field requires a raw user ID, which is not how an admin thinks about people.

Expected. Default the owner to the current user, and/or let the admin enter a username (resolved to the user) instead of a numeric user ID.

Status: verified. Open — not yet actioned.


Patrick Bass
@mobieus

🚀 Jun 7, 2026 10:01am

Resolved and deployed to production. Commit 0753b320f6.

Cohort new form: owner field now uses the standard username autocomplete (data-user-autocomplete) instead of a raw numeric user ID input. Defaults to the current admin user. collectForm() resolves the typed username to a user_id server-side.

Status: fixed. Thread closed.


Patrick Bass
@mobieus

Log in or register to reply to this thread.