[Koha-bugs] [Bug 12133] Guarantor requirements when registering a patron

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 5 14:05:53 CET 2020


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

Emmi Takkinen <emmi.takkinen at outlook.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99629|0                           |1
        is obsolete|                            |

--- Comment #18 from Emmi Takkinen <emmi.takkinen at outlook.com> ---
Created attachment 113099
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113099&action=edit
Bug 12133: Fix issues with modifying child patron and adding guarantors

Child patrons couldn't be modified when guarantor was
patron due missing guarantor_id value. Also if multiple
guarantors were added one could easily add child patron
as a guarantor.

This patch adds Instead of one guarantor id all new and
existing guarantor ids are checked in case of child patron.

To test:
1. Add child patron with syspref ChildNeedsGuarantor and
GuarantorNeedsToBePatron on.
2. Add two guarantors for the patron, first one should be
an adult patron and second a child.
3. Save patron.
=> Error "A guarantor cannot be a guarantee." should be
raised but isn't.
4. Modify patron and save.
=> Error "Child needs guarantor" is raised even if (valid)
guarantor exists.
5. Apply patch.
6. Repeat steps 1 to 4.
=> This time while saving a new patron error "A guarantor
cannot be a guarantee." is raised but modifying is
successful.

Sponsored-by: Koha-Suomi Oy

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


More information about the Koha-bugs mailing list