Bug 13107 - Members are restricted even if the debarment is ended - opac-user
Summary: Members are restricted even if the debarment is ended - opac-user
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Fridolin Somers
QA Contact: Testopia
URL:
Keywords:
Depends on: 12134
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-17 16:29 UTC by Fridolin Somers
Modified: 2015-06-04 23:33 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 13107 - Members are restricted even if the debarment is ended - opac-user (1.28 KB, patch)
2014-10-17 16:33 UTC, Fridolin Somers
Details | Diff | Splinter Review
Bug 13107 - Members are restricted even if the debarment is ended - opac-user (1.34 KB, patch)
2014-10-19 06:49 UTC, Chris Cormack
Details | Diff | Splinter Review
[PASSED QA] Bug 13107 - Members are restricted even if the debarment is ended - opac-user (1.67 KB, patch)
2014-10-21 22:39 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2014-10-17 16:29:03 UTC
Same issue as bug 12134 on the opac/opac-user.pl
Comment 1 Fridolin Somers 2014-10-17 16:33:53 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2014-10-19 06:49:22 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2014-10-21 22:39:21 UTC
Created attachment 32572 [details] [review]
[PASSED QA] Bug 13107 - Members are restricted even if the debarment is ended - opac-user

This is the same issue as bug 12134.

Test Plan:
1) Add a manual restriction to a patron with expiration date in the past.
2) Go on the OPAC and connect (opac-user.pl)
3) Note the warning message
    "Your account has been frozen until until XX/XX/XXXX ..."
4) Apply this patch
5) Repeat step 2
6) Note the warning message does not appear anymore

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described.

NOTE: If you set a debarment with date in the past in the GUI,
there will be no entry in borrowers.debarred and you won't be
able to see the problem. Set one with a date in the future and
then alter the date in borrower_debarments and borrowers.debarred.
Comment 4 Tomás Cohen Arazi 2014-11-19 16:38:43 UTC
Patch pushed to master.

Thanks Frido!