Skip to content

[6.x] Fix global variable references not resolving through the data repository#14938

Open
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix-globals-reference-resolution
Open

[6.x] Fix global variable references not resolving through the data repository#14938
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix-globals-reference-resolution

Conversation

@lazerg

@lazerg lazerg commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Global variable references use a globals:: prefix, but only the singular global repository was registered, so the reference fell through and got tried against every repository including entries, which throws an invalid ID error on database drivers (for example when adding a set to a Replicator inside a global set). This registers the globals prefix against the global variables repository so the reference resolves correctly.

Fixes statamic/eloquent-driver#537

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.

Eloquent v6 migration: invalid input syntax for type uuid

1 participant