Paging error on taxonomy admin list terms page.
| Project: | Drupal |
| Version: | 5.20 |
| Component: | taxonomy.module |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
The admin term list page often leads to a blank final page (no error - just "No terms available") when the #terms / #terms per page == even number. I think that this must be what the FIXME refers to.
Changing the pager_total to the following appears to resolve this issue.
$GLOBALS['pager_page_array'][] = $start_from; // FIXME
$GLOBALS['pager_total'][] = intval($total_entries / $page_increment) + ($total_entries % $page_increment == 0 ? 0 : 1); // FIXME
I don't think that I even have a Drupal 5 site running anymore to fully test. I was just looking at the function to get a old term page that doesn't have the performance issues that the newer Drupal 6+ pages have on super huge nested vocabs.
To replicate, set up a vocab with 50/100/150/etc items, and navigate to the final page. Or just reduce the $page_increment to 1 or on even number vocabs, 2.
