#4645: Pagination should accept a limit of 0 or null
---------------------------------------------+------------------------------
    Reporter:  Laeffe                        |         Owner:         
        Type:  Enhancement                   |        Status:  new    
    Priority:  Very Low                      |     Milestone:  1.3.x.x
   Component:  Controller                    |       Version:         
    Severity:  Trivial                       |    Resolution:         
    Keywords:  pagination limit null Laeffe  |   Php_version:  n/a    
Cake_version:  1.2.0.6311                    |  
---------------------------------------------+------------------------------
Comment (by macnewbold):

 I attached a patch that works against 1.2.2, and I confirmed that it
 applies against 1.2.4.8284 with a very minor change in line number.


 While I would be happy just to have this patch applied against this simple
 and long-standing bug, the full solution probably involves some changes in
 the paginator helper to deal with limit 0. Right now I get something like
 this out of it:


 < Previous | | Next >


 My patch doesn't deal with limit null, which I don't think is necessary,
 since nothing sends a null limit.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/4645#comment:3>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to