Skip to content
This repository
Browse code

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

…r state.
  • Loading branch information...
commit 0daa76d0b785db41e319ea3da291907cdff9c2a1 1 parent 6a10ed1
Robert Curry authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  view/SSViewer.php
1  view/SSViewer.php
@@ -50,6 +50,7 @@ function getItem(){
50 50
 	function resetLocalScope(){
51 51
 		list($this->item, $this->itemIterator, $this->popIndex, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->localIndex];
52 52
 		array_splice($this->itemStack, $this->localIndex+1);
  53
+		$this->itemIteratorTotal = $this->itemIterator ? $this->itemIterator->count() : 0;
53 54
 	}
54 55
 	
55 56
 	function obj($name){

1 note 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.