Skip to content

Commit

Permalink
MONTGOMERY - Bug 28974: (follow-up) Pass total number of items instea…
Browse files Browse the repository at this point in the history
…d of count per page

Before pagination the count of items was the same as the total, now they will differ

Make sure to pass $total to the template instead fo the count per page
  • Loading branch information
kidclamp authored and kylemhall committed Jan 23, 2024
1 parent 73d2e55 commit ebc094a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions circ/view_holdsqueue.pl
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,18 @@ =head1 view_holdsqueue

my $pages = int( $total / $limit ) + ( ( $total % $limit ) > 0 ? 1 : 0 );
$template->param(
branchlimit => $branchlimit,
itemtypeslimit => $itemtypeslimit,
ccodeslimit => $ccodeslimit,
locationslimit => $locationslimit,
total => scalar @$items,
itemsloop => $items,
run_report => $run_report,
branchlimit => $branchlimit,
itemtypeslimit => $itemtypeslimit,
ccodeslimit => $ccodeslimit,
locationslimit => $locationslimit,
total => $total,
itemsloop => $items,
run_report => $run_report,
page => $page,
limit => $limit,
pagination_bar => pagination_bar(
'view_holdsqueue.pl',
$pages,
$page,
'page',
$pages, $page, 'page',
{
branchlimit => $branchlimit,
itemtypeslimit => $itemtypeslimit,
Expand Down

0 comments on commit ebc094a

Please sign in to comment.