Bug 25323

Summary: Patrons can act as their own guarantor
Product: Koha Reporter: David Roberts <david.roberts>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: baptiste.wojtkowski, george, gmcharlt, kyle.m.hall, marie-luce.laflamme
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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