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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 15 12:21:52 CET 2023


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

--- Comment #69 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
(In reply to Jonathan Druart from comment #65)
> I don't understand why this has been designed in a so limited way.
> 
> Why only children?
> 
> This should have been a patron's category flag, or the syspref should accept
> a list of patron's categories.
> 
> At some point only children were allowed to have guarantor, but since bug
> 12446 this limitation should not persist.

It does take into account if patrons category has setting "Can be guarantee"
enabled. In Koha::Patron::store:

if (    C4::Context->preference('ChildNeedsGuarantor')
                    and ( $self->is_child or $self->category->can_be_guarantee
)
                    and $self->contactname eq ""
                    and !@$guarantors )
                {
                   
Koha::Exceptions::Patron::Relationship::NoGuarantor->throw();
}

But yeah, syspref and errors don't implicate that syspref has anything to do
with other than child patrons.

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


More information about the Koha-bugs mailing list