https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39498

--- Comment #2 from Philip Orr <[email protected]> ---
Test plan:
1. Before applying the patch, check how the display is currently. First set
syspref PatronRestrictionTypes to "Allow"
2. Add two different new restriction types, fill out both "Code" and "Label"
3. Go to a patron's checkout page and add one of each of these restrictions,
but do not fill out the comment field when adding them!
4. Observe that in the checkouts page and details page of the patron, it just
says "Restricted since..." and does not show the restriction types.
5. Add another restriction, this time fill out the comment field
6. Observe that now in checkout and detail pages, the labels from the
restriction types are listed and the comment shown.
7. Apply patch
8. Go to patron's details and checkout pages and check the restrictions are now
displayed correctly, that is the text "with the explanation" is only shown for
the restrictions that actually have a comment
8b. Log in to the OPAC with that patron and check they are displayed correctly
in their summary page and when the patron is trying to place a hold.
9. Go to a different patron's account and add a restriction without a comment
10. Check it is now displayed correctly
11. Add more restrictions and check they are displayed correctly. Also add an
OVERDUES restriction:
a. find a patron with an overdue item checked out (or create an overdue
checkout on a patron's account)
b. go to Tools -> Overdue notice/status triggers
c. set up a rule for that patron's category, e.g. "First" -> Delay: 1, make
sure to mark the check box for "Restrict" and "Print"
d. run misc/cronjobs/overdue_notices.pl
e. that patron should now also have an OVERDUES restriction
12. Turn PatronRestrictionTypes off again and check the patrons if everything
is still displayed correctly
13. Go to another different patron and add a restriction with no comment, check
if it is displayed correctly
14. Add another restriction with a comment and check it is displayed correctly
15. Log in to the OPAC with the patron that had OVERDUES restriction and check
they are displayed correctly in their summary page and when the patron is
trying to place a hold.
16. Same thing for the other patron without the OVERDUES restriction.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to