From a1e3975067bf484f8d5f621e042e41baeb69d7b7 Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Tue, 18 Oct 2011 17:56:18 -0400 Subject: [PATCH] Bug 7057: CheckReserves uses GetMemberDetails unnecessarily Replaces call to GetMemberDetails with a call to GetMember. Much more efficient, and since only branchcode is used, no required data is lost. Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index f12c23f009..4af8a8584c 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -826,7 +826,7 @@ sub CheckReserves { } else { # See if this item is more important than what we've got so far if ( $res->{'priority'} && $res->{'priority'} < $priority ) { - my $borrowerinfo=C4::Members::GetMemberDetails($res->{'borrowernumber'}); + my $borrowerinfo=C4::Members::GetMember(borrowernumber => $res->{'borrowernumber'}); my $iteminfo=C4::Items::GetItem($itemnumber); my $branch=C4::Circulation::_GetCircControlBranch($iteminfo,$borrowerinfo); my $branchitemrule = C4::Circulation::GetBranchItemRule($branch,$iteminfo->{'itype'}); -- 2.39.5