silverstripe/sapphire — pull request #302 by robert-h-curry (2012-04-11 23:21:39+00:00)
Title: BUGFIX: Issue #7113: Recalculate itemIteratorCount when popping viewer state.

The itemIteratorCount wasn't being restored on popScope(), which led to calls to functions like Last() behaving erroneously after a nested control loop.