]> git.koha-community.org Git - koha.git/commit
Bug 12446: Ability to allow guarantor relationship for all patron category types
authorMaryse Simard <maryse.simard@inlibro.com>
Fri, 2 Oct 2020 04:02:38 +0000 (00:02 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 23 Jun 2022 16:33:01 +0000 (13:33 -0300)
commitb8f1b0e73d8a0b9562361b983a38d9eafcf202eb
tree23075a4981ba3fd40859fad4d509610004084e5a
parent7f60d887976972aafe16e1495ff46cee128ea81f
Bug 12446: Ability to allow guarantor relationship for all patron category types

This adds a new field "Can be guarantee" to patron categories so it
becomes possible for any category type to have a guarantor.

To test:
1) Have a patron category of type 'Adult' and one of type 'Child'
2) Confirm, by searching for the "Patron guarantor" fieldset in the
edit/create form, that:
    => a patron of the first category can't have a guarantor
    => a patron from the second category can
3) Apply patch and run updatedatabase.pl
4) Edit the categories and note the new "Can be guarantee" field
5) It should have been set to "yes" for the "Child" and to "no" for
the "Adult"
5) Repeat step 2. It should behave in the same way.
6) Edit the "Can be guarantee" for any of the category and check
that the fieldset only appears when "Can be guarantee" is set to "yes"
7) prove t/db_dependent/Patrons.t
    => tests should still pass

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron.pm
admin/categories.pl
installer/data/mysql/atomicupdate/bug_12446.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
members/memberentry.pl
t/db_dependent/Patrons.t