silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
720 stars 820 forks source link

FIX Loop over current scope when no argument passed to loop block #11251

Closed GuySartorelli closed 1 month ago

GuySartorelli commented 1 month ago

Finishes a feature that was sitting there in a broken state for a while - looping through the current item in scope.

This is kinda a mix between a fix and a new feature - I'm calling it a fix in the commit because the current state is simply broken, but I'm targeting 5 because if someone somehow has a <% loop %> sitting in a template right now (which will be silently failing) they'll get unexpected results after pulling this into their project.

Issue