BUGFIX: Issue #7113: Recalculate itemIteratorCount when popping viewer state.

This commit is contained in:
Robert Curry 2012-04-12 11:16:41 +12:00
parent 6a10ed19c1
commit 0daa76d0b7

View File

@ -50,6 +50,7 @@ class SSViewer_Scope {
function resetLocalScope(){ function resetLocalScope(){
list($this->item, $this->itemIterator, $this->popIndex, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->localIndex]; list($this->item, $this->itemIterator, $this->popIndex, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->localIndex];
array_splice($this->itemStack, $this->localIndex+1); array_splice($this->itemStack, $this->localIndex+1);
$this->itemIteratorTotal = $this->itemIterator ? $this->itemIterator->count() : 0;
} }
function obj($name){ function obj($name){