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
Localized field data is lost when bulk-trashing draft documents (trash: true + versions.drafts + localized) #15980
When a collection has trash: true, versions.drafts enabled, and localized fields, bulk-trashing documents from the list view causes all localized field data to be cleared. The trashed documents appear with empty localized fields (e.g., title, description) in the trash view and cannot be properly restored.
The root cause is a desynchronization between the main collection table and the versions table. Draft saves (isSavingDraft === true) skip updateOne, so the main table's locale rows are never updated after the initial creation. When a bulk trash operation runs, it reads documents from the main table (via payload.db.find()), which has stale or empty locale data, and creates a new version from that stale data.
Single-document trash (via updateByID) is not affected because it uses getLatestCollectionVersion(), which reads from the versions table.
Activity
fix: use latest draft version data when trashing unpublished documents (
github-actions commentedon Mar 20, 2026
🚀 This is included in version v3.80.0
github-actions commentedon Mar 28, 2026
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.