ZF-3737: Setting itemCountPerPage after setCurrenPageNumber gives wrong results

Issue Type: Bug Created: 2008-07-24T04:21:06.000+0000 Last Updated: 2008-07-24T04:57:48.000+0000 Status: Resolved Fix version(s): - 1.5.3 (28/Jul/08)

Reporter: Jurrien Stutterheim (norm2782) Assignee: Jurrien Stutterheim (norm2782) Tags: - Zend_Paginator

Related issues: Attachments:


If you call itemCountPerPage after setCurrentPageNumber you'll get wrong results. E.g.:

<pre class="highlight">
$paginator = Zend_Paginator::factory(array('item1', 'item2'));

Because the items per page is set to 10, the normalizePageNumber method which is called by setCurrentPageNumber will normalize the page number to 1. However, after setting the itemcount per page to 1, there are supposed to be two pages. However, the setCurrenPageNumber method already set the page number to 1.


Posted by Jurrien Stutterheim (norm2782) on 2008-07-24T04:57:48.000+0000

Resolved in revision 10345

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.