Bug 25323 - Patrons can act as their own guarantor
Summary: Patrons can act as their own guarantor
Status: RESOLVED DUPLICATE of bug 37892
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-29 19:53 UTC by David Roberts
Modified: 2025-01-03 13:58 UTC (History)
5 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Roberts 2020-04-29 19:53:30 UTC
When searching for a patron to act as a guarantor, if the guarantee's record is returned it can be selected, therefore becoming his/her's own guarantor. This makes no sense.

To reproduce:

1) Create two users, a parent and a child both with the same surname (for example Parent Smith and Child Smith)
2) Edit the child record and under the Guarantor information, use the "Search to add" button to search for a guarantor.
3) Search for Smith. Both Parent Smith and Child Smith will be listed in the results. 
4) Select Child Smith and save the user record.

Child Smith is now the guarantor for Child Smith.
Comment 1 Marie-Luce Laflamme 2024-10-10 15:32:23 UTC
It seems this behaviour has been fixed in the main branch. You can still select the child's name, but Koha now displays the error 'A guarantor cannot be a guarantee' when trying to save changes. Further testing may be needed to confirm.
Comment 2 Baptiste Wojtkowski (bwoj) 2025-01-03 13:57:33 UTC

*** This bug has been marked as a duplicate of bug 37892 ***
Comment 3 Baptiste Wojtkowski (bwoj) 2025-01-03 13:58:13 UTC
It's not actually a duplicate of the bug marked as, but this issue has been solved by it