mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Issue #7113: Recalculate itemIteratorCount when popping viewer state.
This commit is contained in:
parent
6a10ed19c1
commit
0daa76d0b7
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user