Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

JohnathonKoster
Copy link
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.

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