Skip to content

[6.x] Return a copy from AugmentedEntry::date() instead of the entry's live instance - #15273

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
marcorieser:fix/augmented-entry-date-mutable-reference
Aug 25, 2026
Merged

[6.x] Return a copy from AugmentedEntry::date() instead of the entry's live instance#15273
jasonvarga merged 1 commit into
statamic:6.xfrom
marcorieser:fix/augmented-entry-date-mutable-reference

Conversation

@marcorieser

Copy link
Copy Markdown
Contributor

Fixes: #15269

@jasonvarga
jasonvarga merged commit 59b5080 into statamic:6.x Aug 25, 2026
62 checks passed
@marcorieser
marcorieser deleted the fix/augmented-entry-date-mutable-reference branch August 26, 2026 07:02
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.

AugmentedEntry::date() leaks mutable Carbon by reference — title_format modifiers can corrupt the saved entry date

2 participants