Issues

ZF-8476: lastItemNumber is greater than totalItemCount when using Zend_Paginator_Adapter_Null

Description



$paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Null(2));
$paginator->setCurrentPageNumber(1);
$paginator->setItemCountPerPage(50);
$pages = $paginator->getPages();

// Will be 2
echo $pages->totalItemCount;

// Will be 50
echo $pages->lastItemNumber;


Comments

This issues already was resolved as of the version 1.10.0.