From 08b1ebec75623c84967fd09611cf1fef4442c200 Mon Sep 17 00:00:00 2001 From: Francesco Rivetti Date: Tue, 14 Feb 2017 11:16:01 +0100 Subject: [PATCH] Bug 17941 don't compute priority more than needed Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- reserve/request.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reserve/request.pl b/reserve/request.pl index 3f4dba3c12..a022c99869 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -512,6 +512,7 @@ foreach my $biblionumber (@biblionumbers) { } @reserves ) { + my $priority = $res->priority(); my %reserve; my @optionloop; for ( my $i = 1 ; $i <= $totalcount ; $i++ ) { @@ -519,7 +520,7 @@ foreach my $biblionumber (@biblionumbers) { @optionloop, { num => $i, - selected => ( $i == $res->priority() ), + selected => ( $i == $priority ), } ); } -- 2.39.5