Red Hat Bugzilla – Bug 832046
The button which changes to the next grid's page should be grayed out if no objects in the next page
Last modified: 2016-01-28 16:55:04 EST
Created attachment 591814 [details]
Devel env on Fedora 16, last commit's hash: b151d8a74f9cf012a5828144d2b60fe5df74c5dc
In case the number of objects in webadmin's main-grid page is as the size of the page (defined by SearchResultsLimit parameter in vdc_options table), the button that moves the grid to the next page is available while it should be grayed out, so it's possible to click on it and move to an empty page.
For instance - if I have 100 vms in the Virtual Machines tab, I can click on the next page button (located in the upper right corner of the Virtual Machines main tab, it will change into page two of the Virtual Machines tab's grid with no objects in it.
Note that this situation happens only when:
the number of objects in main tab's grid % SearchResultsLimit == 0
are you sure that it is a regression? from what?
Pretty sure, from older ovirt-engine commits, I can't point exactly from which commit but I think this regression introduced when the page's objects numbering label first inserted near these buttons not so long ago.
Tested it against old code, it seems to happen there too. removing the Regression keyword.
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.