Skip to content

[5.x] Detect recursion when augmenting Entries - #11854

Merged
jasonvarga merged 1 commit into
statamic:5.xfrom
JohnathonKoster:improvement/detect-recursive-augmentation
Jun 19, 2025
Merged

[5.x] Detect recursion when augmenting Entries#11854
jasonvarga merged 1 commit into
statamic:5.xfrom
JohnathonKoster:improvement/detect-recursive-augmentation

Conversation

@JohnathonKoster

Copy link
Copy Markdown
Contributor

This PR adds recursive augmentation detection. The current scope of this detection is Entries, but will apply to anything that utilizes HasOrigin.

This recursive behavior can be re-created when attempting to reference augmented values within computed callbacks (see #11853). This PR does not fix the underlying issue here, but makes it easier to detect and debug.

@JohnathonKosterJohnathonKoster changed the title [5.x] Detect recursion when augmenting[5.x] Detect recursion when augmenting EntriesJun 7, 2025
@jasonvarga
jasonvarga merged commit 6f2a5fb into statamic:5.xJun 19, 2025
JohnathonKoster added a commit to JohnathonKoster/cms that referenced this pull request Jun 24, 2025
Sign up for freeto 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

@JohnathonKoster@jasonvarga