[Koha-bugs] [Bug 36453] BlockExpiredPatronOpacActions should allow multiple actions options

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 28 12:23:06 CET 2024


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

--- Comment #7 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 164048
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164048&action=edit
Bug 36453: Update tests

Address new new version of system pref
Address new version of categories DB table BlockExpiredPatronOpacActions column

Test plan, k-t-d, BEFORE applying patch:
1) Edit some patron categories, visit:
/cgi-bin/koha/admin/categories.pl
2) Set different values for the "Block expired patrons" input config
Set a category to block
Set a category to don't block
Set a category to follow the syspref
3) Take note of the current value of the BlockExpiredPatronOpacActions sys pref

Apply patch, then run the following commands
- koha-plack --restart kohadev
- yarn css:build
- run updatedatabase

4) Visit the patron categories you edited before, make sure they all have the
correct values for the new config type
5) Check the BlockExpiredPatronOpacActions sys pref and make sure the new value
is correct according to what was before
6) Add a new patron of one of the above categories, test that:
If 'hold' is a blocked action, patron is unable to place a hold in OPAC
If 'renew' is a blocked action, patron is unable to renew in OPAC
If 'follow sys pref' is the option, check that a patron may place a hold or
renew an item according to the BlockExpiredPatronOpacActions sys pref value

prove t/db_dependent/Circulation.t
prove t/db_dependent/ILSDI_Services.t
prove t/db_dependent/Koha/Object.t
prove t/db_dependent/Koha/Patron/Categories.t

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list