Main Koha release repository https://koha-community.org
Find a file
Lucas Gass 4f170fb94d
Bug 39331: If patron category cant be guarantee do not continue with add_guarantors
To test:
1 - Remove age limits from a Child and Adult category in Administration->Patron categories. Ensure Child category can be guarantor and Adult cannot
2 - The above step is to avoid any age checks and form resubmission which removes the guarantor fields
3 - Find/create a child patron
4 - Add a guarantee from the Adult category to the child
5 - Check the DB:
   SELECT * FROM borrower_relationships WHERE guarantee_id={borrowernumber of child};
6 - Note the id colum
7 - Edit the child patron to Adult category
8 - Repeat 5
9 - Note the relationship still exists and the id is incremented
10 - Oof!
11 - APPLY PATCH, restart_all
12 - Try again steps 3 - 8
13 - The relationship should not be re-added
14 - Try with more than 1 guarantor on the record, confirming all are deleted
15 - Try adding some guarantor to patron types that should be able to, they relationship should work.
16 - Try changing some patrons to categories that do allow guarantors, making sure the relationship does stay.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-03-21 17:50:26 +01:00
acqui
admin
api
authorities Bug 38494: (QA follow-up) Add comment and extend pref desc 2025-03-20 17:23:06 +01:00
basket
bin
bookings
C4 Bug 37171: Add serial note to serial claims screen 2025-03-19 11:55:31 +01:00
catalogue
cataloguing Bug 35134: Use localStorage instead of a cookie 2025-03-19 17:34:56 +01:00
circ
clubs
course_reserves
debian
docs
erm
errors
etc
ill
installer Bug 38494: DBRev 24.12.00.020 2025-03-20 17:23:08 +01:00
Koha Bug 38184: Show due date on OpacTrustedCheckout modal 2025-03-20 09:03:01 +01:00
koha-tmpl Bug 39396: (bug 38714 follow-up) Restore options in Batch item modification 2025-03-21 17:50:25 +01:00
labels
lib
members Bug 39331: If patron category cant be guarantee do not continue with add_guarantors 2025-03-21 17:50:26 +01:00
misc Bug 39353: (QA follow-up) Clarify error message 2025-03-19 17:34:54 +01:00
offline_circ
opac Bug 33224: OPACHoldsIfAvailableAtPickup and no on-shelf holds don't mix well 2025-03-19 17:34:55 +01:00
patron_lists
patroncards
plugins
pos
preservation
recalls
reports
reserve
reviews
rotating_collections
serials
services
skel
suggestion
svc
t Bug 38993: Fix sysprefs fetch from cypress 2025-03-20 14:31:24 +01:00
tags
tools
virtualshelves
xt
.editorconfig
.git-blame-ignore-revs
.gitignore
.htaccess
.mailmap
.perlcriticrc
.perltidyrc
.prettierrc.js
.proverc.dist
.stylelintrc.json
about.pl
app.psgi
build-resources.PL
changelanguage.pl
cpanfile
cypress.config.ts
eslint.config.mjs
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 38494: DBRev 24.12.00.020 2025-03-20 17:23:08 +01:00
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
rspack.config.js
tsconfig.json
webpack.config.js
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo