From 7cf75766cc1c3c7a06352e4c4481f6d4c3750bc5 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 Content-Type: text/plain; charset=utf-8 Signed-off-by: Michal Denar Signed-off-by: Josef Moravec Signed-off-by: Michal Denar Signed-off-by: Marcel de Rooy --- 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.11.0