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>
This commit is contained in:
parent
432f058a72
commit
8d12248e95
|
|
@ -95,6 +95,9 @@ my $forgivemanualholdsexpire = $query->param('forgivemanualholdsexpire');
|
|||
|
||||
my $overduecharges = (C4::Context->preference('finesMode') && C4::Context->preference('finesMode') eq 'production');
|
||||
|
||||
#set up so only the last 8 returned items display (make for faster loading pages)
|
||||
my $returned_counter = ( C4::Context->preference('numReturnedItemsToShow') ) ? C4::Context->preference('numReturnedItemsToShow') : 8;
|
||||
|
||||
# Set up the item stack ....
|
||||
my %returneditems;
|
||||
my %riduedate;
|
||||
|
|
@ -104,7 +107,7 @@ foreach ( $query->param ) {
|
|||
my $counter;
|
||||
if (/ri-(\d*)/) {
|
||||
$counter = $1;
|
||||
if ($counter > 20) {
|
||||
if ($counter > $returned_counter) {
|
||||
next;
|
||||
}
|
||||
}
|
||||
|
|
@ -741,8 +744,6 @@ foreach my $code ( keys %$messages ) {
|
|||
}
|
||||
$template->param( errmsgloop => \@errmsgloop );
|
||||
|
||||
#set up so only the last 8 returned items display (make for faster loading pages)
|
||||
my $returned_counter = ( C4::Context->preference('numReturnedItemsToShow') ) ? C4::Context->preference('numReturnedItemsToShow') : 8;
|
||||
my $count = 0;
|
||||
my @riloop;
|
||||
my $shelflocations =
|
||||
|
|
|
|||
Loading…
Reference in New Issue