Bugzilla – Attachment 5993 Details for
Bug 7057
C4::Reserves::CheckReserves uses GetMemberDetails unnecessarily
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7057: CheckReserves uses GetMemberDetails unnecessarily
SIGNED-OFF-Bug-7057-CheckReserves-uses-GetMemberDe.patch (text/plain), 1.33 KB, created by
Nicole C. Engard
on 2011-10-19 19:42:18 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7057: CheckReserves uses GetMemberDetails unnecessarily
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-10-19 19:42:18 UTC
Size:
1.33 KB
patch
obsolete
>From 80f5884a095ca8877bde29d42784f949851dbdbb Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Tue, 18 Oct 2011 17:56:18 -0400 >Subject: [PATCH] [SIGNED-OFF] 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 <nengard@bywatersolutions.com> >--- > C4/Reserves.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index f7a2e72..eff4e9f 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -828,7 +828,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'}); >-- >1.7.2.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7057
:
5967
| 5993