Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011680Openbravo ERPZ. Otherspublic2009-12-08 10:502011-09-21 22:43
arunkumar 
shuehner 
normalminorhave not tried
closedout of date 
5
2.40 
 
Core
No
0011680: Next 5 should not be displayed in the last page
The last page should contain link only for the previous pages.It should not contain link to the Next pages.
Prerequisite:

Have a 2.40 environment.
Change the number of rows to 5.

Steps:

Click Information -> Product.
Product selector popup window will open.
Assume that there are 15 records.
So when you are in the last page 11-15/15 the "Next 5" should not be displayed there. But we can see it is getting displayed there. If we click that an empty page is displayed.
page data grid
depends on backport 0011711 closed shuehner Next 5 should not be displayed in the last page 
jpg datagrid2.JPG (202,083) 2009-12-08 10:50
https://issues.openbravo.com/file_download.php?file_id=2034&type=bug
jpg
Issue History
2009-12-08 10:50arunkumarNew Issue
2009-12-08 10:50arunkumarAssigned To => rafaroda
2009-12-08 10:50arunkumarFile Added: datagrid2.JPG
2009-12-08 11:43arunkumarTag Attached: page data grid
2009-12-09 13:15shuehnerNote Added: 0022584
2009-12-09 16:26psarobeStatusnew => scheduled
2009-12-09 16:26psarobeAssigned Torafaroda => shuehner
2009-12-09 16:26psarobefix_in_branch => pi
2011-09-21 22:43shuehnerNote Added: 0041208
2011-09-21 22:43shuehnerStatusscheduled => closed
2011-09-21 22:43shuehnerResolutionopen => out of date

Notes
(0022584)
shuehner   
2009-12-09 13:15   
Note: This does not happen always, but only if the total number of rows is a multiple of the pagesize.

Need to check if it can be avoided with reasonable effort.
(0041208)
shuehner   
2011-09-21 22:43   
This issue was amplified by a change in the testing environment which changed the pagesize to 5. In normal unchanged system this is a constant of 10.000 so this problem does happen but only if the total number of rows hits exactly a multiple of 10.000 so its very unlikely.

However in the new 3.0 major version the grid was totally rewritten and does not contain the Previous/Next buttons anymore so this problem just does not happen at all there anymore.