Skip Menu |

This queue is for tickets about the CatalystX-ListFramework-Builder CPAN distribution.

Report information
The Basics
Id: 43031
Status: resolved
Priority: 0/
Queue: CatalystX-ListFramework-Builder

People
Owner: Nobody in particular
Requestors: LEEDO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.39
Fixed in: (no value)



Subject: Pagination for related records off by one
When adding a new record I noticed that the pagination in the combobox for adding a related record is off by one. If I hit the "Last page" button it successfully jumps to the last 5 items. But that page is not accessible by simply clicking the "Next page" button. The JSON coming from Catalyst looks correct, so I am thinking this is an Ext issue. I'm not terribly familiar with Ext but I may have a fix at some point.
On Wed Feb 04 15:50:43 2009, LEEDO wrote: Show quoted text
> When adding a new record I noticed that the pagination in the combobox > for adding a related > record is off by one. If I hit the "Last page" button it successfully > jumps to the last 5 items. But > that page is not accessible by simply clicking the "Next page" button. > The JSON coming from > Catalyst looks correct, so I am thinking this is an Ext issue. I'm not > terribly familiar with Ext but I > may have a fix at some point.
Upon closer inspection it looks it is showing half the total number of pages, and showing each page number twice. When clicking through the pages I get something like this: 1, 2, 2, 3, 3, 4, 4, 5, 5, (final page is missing)
Hi Lee, On Wed Feb 04 15:50:43 2009, LEEDO wrote: Show quoted text
> When adding a new record I noticed that the pagination in the combobox > for adding a related > record is off by one. If I hit the "Last page" button it successfully > jumps to the last 5 items. But > that page is not accessible by simply clicking the "Next page" button.
Okay, thanks for the bug report, I'll look into this. Show quoted text
> The JSON coming from > Catalyst looks correct, so I am thinking this is an Ext issue. I'm not > terribly familiar with Ext but I > may have a fix at some point.
Much appreciated if you want to take a look. What might be affecting things is that I do some fairly gruesome hacks with Ext to get the main grid working with the "filters" row at the top. This may be affecting other paging components such as this related records box. That's just a hunch - you might be right as well, Ext does have the odd bugs I've seen, but I wanted to warn you anyway :-) regards, oliver.
I'm closing this ticket because CatalystX::ListFramework::Builder has been deprecated for some time in favour of Catalyst::Plugin::AutoCRUD. -- regards, oliver.