#310 - Ticket list pagination doesn't work when current page = total pages - 1
Type Defect
Status Fixed
Milestone 3.0.4
Version 3.0.3
Component Tickets
Priority Normal
Severity Normal
Owner michob
Assigned to -
Reported 9 years ago
Updated 8 years ago
Votes 0
Related tickets
Proposed time
Worked time

What did you do to cause this? Loaded the tickets list when I only had 27 tickets in the system

What page were you on? Tickets

What PHP and MySQL versions do you run? PHP 5.3

Describe the defect:

The Next button on the tickets list does not appear when there are >25 tickets but <50. I suspect, based on the code, this will happen any time the current page # = total pages -1. See:

helpers/pagination.php line 88 if ($this->next_page < $this->total_pages) {

Should be if ($this->next_page <= $this->total_pages) {

This fixed the issue for me.

Ticket History

Jack closed as Fixed 9 years and 6 months ago