processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

getFormatted() on repeater matrix (and probably repeater) items results in all items having outputformatting turned on for subsequent requests.

Open adrianbj opened this issue 5 months ago • 0 comments

Hi @ryancramerdesign - not really sure if this is a bug or not, but if you call: $page->getFormatted('rm_field') then all items will end up with outputformatting on. I assumed it would get the formatted value, but not change it's status if called again.

This demonstrates the issue.

Image

Is this intended behavior, or a bug?

I can "fix it" by looping through and turning it off for each item.

Image

adrianbj avatar Jul 18 '25 18:07 adrianbj