Bugzilla – Attachment 40390 Details for
Bug 10063
Correct the documentation for the C4:Members sub: IsMemberBlocked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10063: Correct documentation of C4::Members::IsMemberBlocked
Bug-10063-Correct-documentation-of-C4MembersIsMemb.patch (text/plain), 2.12 KB, created by
Kyle M Hall (khall)
on 2015-06-19 14:57:29 UTC
(
hide
)
Description:
Bug 10063: Correct documentation of C4::Members::IsMemberBlocked
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-06-19 14:57:29 UTC
Size:
2.12 KB
patch
obsolete
>From 37f3719fd033bca2f16547e5dbd82c039ab636e9 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 8 Jun 2015 04:17:53 +0200 >Subject: [PATCH] Bug 10063: Correct documentation of C4::Members::IsMemberBlocked > >Rephrased documentation a bit, replacing fine days with the >more general term restriction. As IsDebarred checks for existing >active restrictions. > >TEST PLAN >--------- >1) apply patch >2) git diff origin/master > -- do the changes make sense >3) perldoc C4::Members > -- look for the IsMemberBlocked. > -- Does it reflect current state >4) koha qa test tools > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> >--- > C4/Members.pm | 12 +++++------- > 1 files changed, 5 insertions(+), 7 deletions(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index c5e5453..2843da4 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -515,25 +515,23 @@ sub GetMemberRelatives { > > my ($block_status, $count) = IsMemberBlocked( $borrowernumber ); > >-Returns whether a patron has overdue items that may result >-in a block or whether the patron has active fine days >-that would block circulation privileges. >+Returns whether a patron is restricted or has overdue items that may result >+in a block of circulation privileges. > > C<$block_status> can have the following values: > >-1 if the patron has outstanding fine days or a manual debarment, in which case >+1 if the patron is currently restricted, in which case > C<$count> is the expiration date (9999-12-31 for indefinite) > > -1 if the patron has overdue items, in which case C<$count> is the number of them > > 0 if the patron has no overdue items or outstanding fine days, in which case C<$count> is 0 > >-Outstanding fine days are checked before current overdue items >-are. >+Existing active restrictions are checked before current overdue items. > > FIXME: this needs to be split into two functions; a potential block > based on the number of current overdue items could be orthogonal >-to a block based on whether the patron has any fine days accrued. >+to a block based on whether the patron has any restrictions. > > =cut > >-- >1.7.2.5
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 10063
:
39972
|
40145
|
40377
|
40378
|
40390
|
40391
|
40392
|
40393