From 158fda8895b3c368ecf950aad40aa8e984425210 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 Oct 2020 17:23:11 +0200 Subject: [PATCH] Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar --- circ/pendingreserves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 2500160dd7..85fcdf0270 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -349,7 +349,7 @@ foreach my $bibnum ( @biblionumbers ){ my $res_info = Koha::Holds->search( { 'reserve.biblionumber' => $bibnum, %where }, { prefetch => [ 'borrowernumber', 'itembib', 'biblio' ], - order_by => 'reserve.reservedate', + order_by => 'priority', alias => 'reserve' } )->next; # get first item in results -- 2.20.1