Pagination issues affecting the Processing Schedules screen and edit modal

Description

I noticed an issue when I was testing OLMIS-5798. When one goes to a given processing schedule's edition, goes to the next page of periods and then, returns to the previous or the first page, the pagination in the modal breaks - only 5 or 6 periods begin to be visible in the "Add Processing Period for "X" schedule" modal. Also, the same number of processing schedules becomes visible on the "Processing Schedules" screen as is visible in the modal.

Reproduction steps:

  1. Log into the application as administrator.

  2. Go to Administration > Processing Schedules.

  3. Click the "Edit" button next to any processing schedule.

  4. Go to the next pages of the processing periods list several times with the use of the "Next" button and the page numbers.

  5. On the "Processing Schedules" screen, the same pagination as in the modal becomes visible.

  6. Go to the previous pages of the processing periods list several times with the use of the "Previous" button and the page numbers.

  7. Only 5 or 6 processing periods become visible, even though there are more of them created for a given schedule.

Expected behavior:

  • The pagination should work correctly both in the modal and on the "Processing Schedules" screen.

Environment

None

Assignee

Mateusz Kwiatkowski

Reporter

Joanna Bebak

Labels

Story Points

2

Time tracking

8h

Components

Sprint

None

Fix versions

Affects versions

Priority

Critical
Configure