From 1dc3d55ea275c1429a9f1adfad6c469f5ca8f401 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 Signed-off-by: Josef Moravec Signed-off-by: Michal Denar Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- 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.39.5