Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: Issue #7113: Recalculate itemIteratorCount when popping viewe…

…r state.
  • Loading branch information...
commit 0daa76d0b785db41e319ea3da291907cdff9c2a1 1 parent 6a10ed1
Robert Curry robert-h-curry authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  view/SSViewer.php
1  view/SSViewer.php
View
@@ -50,6 +50,7 @@ function getItem(){
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){

1 comment on commit 0daa76d

Devlin

This line produces a segmentation fault (11) for me when using a PaginatedList.

PHP 5.3.10-1ubuntu3 with Suhosin-Patch (cli) (built: Apr 11 2012 17:25:33)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

Please sign in to comment.
Something went wrong with that request. Please try again.