From 0daa76d0b785db41e319ea3da291907cdff9c2a1 Mon Sep 17 00:00:00 2001 From: Robert Curry Date: Thu, 12 Apr 2012 11:16:41 +1200 Subject: [PATCH] BUGFIX: Issue #7113: Recalculate itemIteratorCount when popping viewer state. --- view/SSViewer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/view/SSViewer.php b/view/SSViewer.php index 03e61b869..ef82e7442 100644 --- a/view/SSViewer.php +++ b/view/SSViewer.php @@ -50,6 +50,7 @@ class SSViewer_Scope { function resetLocalScope(){ list($this->item, $this->itemIterator, $this->popIndex, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->localIndex]; array_splice($this->itemStack, $this->localIndex+1); + $this->itemIteratorTotal = $this->itemIterator ? $this->itemIterator->count() : 0; } function obj($name){