From 9174bdecdb4d0c6b7816af99b321110d192f7f13 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 --- circ/pendingreserves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 4b96420b5a..1d5cef3013 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