You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Data Loss] Value not set in bulk actions in the beforeValidate hook #10923
changed the title [-]Value not set in bulk actions in the beforeValidate hook[/-][+][Data Loss] Value not set in bulk actions in the beforeValidate hook[/+]on Feb 4, 2025
@AlessioGr Fields with a beforeValidate hook appear to be removed from the data passed to the beforeValidate function. When I remove the hook from a field and log the data in another hook, the field’s data is present. However, when I add the hook back, the data for that field disappears.
Activity
[-]Value not set in bulk actions in the beforeValidate hook[/-][+][Data Loss] Value not set in bulk actions in the beforeValidate hook[/+]KoenRijpstra commentedon Feb 25, 2025
@jmikrut Any updates on this? I’m facing the same issue and now need to update 175 doc pages.
Binaries:
Node: 23.5.0
npm: 10.9.2
Yarn: N/A
pnpm: 9.13.0
Relevant Packages:
payload: 3.24.0
next: 15.1.7
@payloadcms/graphql: 3.24.0
@payloadcms/live-preview: 3.24.0
@payloadcms/live-preview-react: 3.24.0
@payloadcms/next/utilities: 3.24.0
@payloadcms/plugin-cloud-storage: 3.24.0
@payloadcms/plugin-form-builder: 3.24.0
@payloadcms/plugin-nested-docs: 3.24.0
@payloadcms/plugin-redirects: 3.24.0
@payloadcms/plugin-search: 3.24.0
@payloadcms/plugin-seo: 3.24.0
@payloadcms/richtext-lexical: 3.24.0
@payloadcms/storage-vercel-blob: 3.24.0
@payloadcms/translations: 3.24.0
@payloadcms/ui/shared: 3.24.0
react: 19.0.0
react-dom: 19.0.0
KoenRijpstra commentedon Feb 25, 2025
@AlessioGr Fields with a beforeValidate hook appear to be removed from the data passed to the beforeValidate function. When I remove the hook from a field and log the data in another hook, the field’s data is present. However, when I add the hook back, the data for that field disappears.
Think it is related to this PR: #10666
fix: incorrect value inside beforeValidate field hooks (payloadcms#11433
github-actions commentedon Mar 4, 2025
🚀 This is included in version v3.26.0
github-actions commentedon Mar 12, 2025
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.