#6218: Changeset 8092 causes all $paginator->sort() to require modelname
-------------------------------+--------------------------------------------
    Reporter:  eimermusic      |          Type:  Bug    
      Status:  new             |      Priority:  Low    
   Milestone:  1.2.x.x         |     Component:  Helpers
     Version:  1.2 Final       |      Severity:  Minor  
    Keywords:  paginator sort  |   Php_version:  n/a    
Cake_version:  1.2.2.8120      |  
-------------------------------+--------------------------------------------
 Hi,
 First off: Sorry. I have no case to test this.
 [[BR]][[BR]]

 It seems Changeset 8092 caused a change to the sorting for all paginations
 and I suspect this was not intentional. The change is that sort() in
 PaginatorHelper now requires all fields to be specified as
 Modename.fieldname.
 [[BR]][[BR]]
 This no longer works: $paginator->sort('label, 'field');
 Not even for the simplest single-model pagination. The link created will
 always be for the ASC direction and never for DESC.
 [[BR]][[BR]]
 Fixing this in existing applications is trivial but it looks like
 scaffolding still uses just the field names (I may be wrong I just had a
 very quick glanse).
 [[BR]][[BR]]
 If you guys need me to prove this with a test I will try to make one in a
 few days (I suck at it and I can't do it today)
 [[BR]][[BR]]
 [https://trac.cakephp.org/changeset/8092]

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6218>
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to