Bug 30802: Make numReturnedItemsToShow function properly
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Thu, 19 May 2022 15:05:17 +0000 (11:05 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Sep 2022 12:17:13 +0000 (09:17 -0300)
commit8d12248e954748a7bb795b988e3bb4dc396bc23a
tree2e5618d7c399fc231a748ff57739b89ae35c0844
parent432f058a722cd66cdb2ebde4d8d47222830a7632
Bug 30802: Make numReturnedItemsToShow function properly

Replaced the hardcoded 20 by the value of numReturnedItemsToShow to
display the right number of items in check in.

Test plan:
1-  Make lots of checkouts, at least like 40 (I used the batchCheckouts feature)
2-  Go to Circulation > Check in
3-  Return 21 items
    The last 20 items returned will be displayed
4-  Change numReturnedItemsToShow to 50
5-  Return a couple more items
    Only the last 20 returned items are displayed
6-  Change numReturnedItemsToShow to 10
7-  Return a couple more items
    Only the last 10 returned items are displayed
8-  Apply the patch
9-  Change numReturnedItemsToShow back to 20
10- Do steps 1 to 7 again, but this time step 5 returns the right amount
of items

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
circ/returns.pl