Skip to content

[6.x] Fix fieldtype meta not refreshing after publishing entries and running actions - #15921

Merged
duncanmcclean merged 2 commits into
6.xfrom
refresh-meta-after-actions
Nov 16, 2026
Merged

duncanmcclean merged 2 commits into
6.xfrom
refresh-meta-after-actions

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where publishing/unpublishing an entry (with revisions enabled) or running an item action from a publish form could break the Control Panel until a hard refresh, when the blueprint contains a Grid with min_rows (or any field with default: rows) that has no saved value.

This was happening because those rows get a fresh _id on every request. The publish, unpublish and item action endpoints returned the newly preprocessed values, but no meta, so the publish form ended up with row IDs that didn't exist in meta.existing. Nested fieldtypes (like Assets) then received null meta and threw (Cannot read properties of null (reading 'dynamicFolder')), leaving a broken component tree behind and breaking Inertia navigation.

#15427 already fixed this for saving. This PR fixes it for the remaining paths by returning meta from the publish/unpublish endpoints and the entry, term and user action controllers, and applying it alongside the values in the entry, term and user publish forms.

Thread: https://ampcode.com/threads/T-18f6c15b-3821-4803-856c-d5b05a1b8e03

Fixes #14929
Related: #15427

@duncanmcclean
duncanmcclean merged commit e613dd2 into 6.x Nov 16, 2026
64 checks passed
@duncanmcclean
duncanmcclean deleted the refresh-meta-after-actions branch November 16, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JS error with grid set to min_rows: 1 breaks CP navigation

2 participants