Skip to content

[6.x] Forms 2: Give runtime form blueprints unique cache keys - #15330

Merged
jasonvarga merged 2 commits into
forms-2from
forms-2-blueprint-cache-keys
Sep 1, 2026
Merged

[6.x] Forms 2: Give runtime form blueprints unique cache keys#15330
jasonvarga merged 2 commits into
forms-2from
forms-2-blueprint-cache-keys

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where rendering two forms on the same page — like a guestbook page using the {{ form:submissions }} tag followed by the {{ form:contact }} tag — would throw a Field::setFormField(): null given error.

This was happening because runtime form blueprints don't have a handle, so every form in the request shared the same blueprint-contents-- Blink cache key and cross-contaminated each other's contents.

This PR fixes it by giving the runtime blueprint the form's handle, so each form gets its own cache key. This PR also stops a test from saving the runtime blueprint, since the blueprint having a handle means it would now write an actual blueprint file.

@jasonvarga
jasonvarga merged commit 4884295 into forms-2 Sep 1, 2026
62 checks passed
@jasonvarga
jasonvarga deleted the forms-2-blueprint-cache-keys branch September 1, 2026 13:49
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.

2 participants