Bug 12292: ensure that patrons are not displayed as restricted even when the last...
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 20 May 2014 14:07:17 +0000 (16:07 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 22 May 2014 16:51:14 +0000 (16:51 +0000)
commita672240a7575d25c554cbbf003abee00aa3f7e89
tree84dfc66f1f4645fb0f6f4792b141a9e3806395fc
parent6b928438ce06f7f7d664766b8206001c57bea817
Bug 12292: ensure that patrons are not displayed as restricted even when the last restriction has expired

This is the same issue as bug 12134, but for the patron deatils page.

Test Plan:
1) Add a manual restriction to a patron and wait until the
   expiration date of the restriction has passed.  This can be
   simulated by modifying borrowers.debarred for a borrower and
   setting the date in the past.
2) Go on the detail page for a patron (members/moremember.pl)
3) Note the warning message
    "Patron is restricted until XX/XX/XXXX View restrictions"
4) Apply this patch
5) Repeat step 2
6) Note the warning message does not appear anymore

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described, no errors.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
members/moremember.pl