Skip to content

fix(payload): validate virtual useAstitle when auth is enabled#16169

Open
nehaaprasad wants to merge 1 commit intopayloadcms:mainfrom
nehaaprasad:feat/use-tit-skip-col-vali-enb
Open

fix(payload): validate virtual useAstitle when auth is enabled#16169
nehaaprasad wants to merge 1 commit intopayloadcms:mainfrom
nehaaprasad:feat/use-tit-skip-col-vali-enb

Conversation

@nehaaprasad
Copy link
Copy Markdown
Contributor

@nehaaprasad nehaaprasad commented Apr 3, 2026

what?

  • Run the same useAsTitle + virtual checks for auth collections as for non-auth (still special-case email).

Why?

  • Virtual useAsTitle was only validated when auth was off.

How?

  • Single path: return early only for email; then existence + virtual === true check.

Fixes : #16142

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Pull Request titles must follow the Conventional Commits specification and have valid scopes.

Unknown scope "payload" found in pull request title "fix(payload): validate virtual useAstitle when auth is enabled". Scope must match one of: cpa, claude, db-*, db-d1-sqlite, db-mongodb, db-postgres, db-vercel-postgres, db-sqlite, db-d1-sqlite, drizzle, email-*, email-nodemailer, email-resend, eslint, graphql, kv, kv-redis, live-preview, live-preview-react, live-preview-vue, next, payload-cloud, plugin-cloud, plugin-cloud-storage, plugin-ecommerce, plugin-form-builder, plugin-import-export, plugin-mcp, plugin-multi-tenant, plugin-nested-docs, plugin-redirects, plugin-search, plugin-sentry, plugin-seo, plugin-stripe, richtext-*, richtext-lexical, richtext-slate, sdk, storage-*, storage-azure, storage-gcs, storage-r2, storage-uploadthing, storage-vercel-blob, storage-s3, translations, ui, templates, examples(/(\w|-)+)?, deps.

feat(ui): add Button component
^    ^    ^
|    |    |__ Subject
|    |_______ Scope
|____________ Type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useAsTitle virtual field validation is skipped if collection has auth enabled

1 participant