Download & Extend

Paging error on taxonomy admin list terms page.

Project:Drupal core
Version:5.x-dev
Component:taxonomy.module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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.

Comments

#1

Version:5.20» 5.x-dev

#2

Status:active» closed (won't fix)

Considering the lack of activity on this issue and that Drupal v5 is no longer supported by fixes or patches, I am going to close this ticket. If this issue still exists and you want to continue to ask for technical support from the community, please reopen and update this ticket.

nobody click here