I suspect this was not intended since 1.2 is stable and should only "fix bugs" and not change API requirements.
Looks like the changes to the methods sort() and sortkey() in PaginatorHelper caused the change in behaviour. $this->sortKey($options['model']) will always return a value like Modename.fieldname and thus never match a field specified as simply fieldname. /Martin On Mar 22, 2:15 pm, Sergei <yatse...@gmail.com> wrote: > Ok thanks, will try this. > > On 22 мар, 20:32, Martin Westin <martin.westin...@gmail.com> wrote: > > > Looks like a new "requirement" has crept into the core. > > > This will give me the results you mention: > > $paginator->sort('label, 'field'); > > > While this works as expected: > > $paginator->sort('label, 'Model.field'); > > > /Martin > > > On Mar 22, 11:09 am, Sergei <yatse...@gmail.com> wrote: > > > > I think paginator links have bug in 1.2.2: > > > > When initial sort order is :desc, and then you sort it by :asc, links > > > don't change back to :desc. It' always :asc. > > > > Anyone noticed this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---