[Koha-bugs] [Bug 27857] Koha::Patron->extended_attributes skips checks

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 5 16:49:01 CET 2021


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

--- Comment #5 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
# Get a list of required attributes
my $required_attribute_types =
    Koha::Patron::Attribute::Types->search_with_library_limits(
        { mandatory => 1 },
        {}, $self->library->branchcode )->get_column('type');

We got stuck at deciding what mandatory actually means.. right now we delete
all attributes for the patron at the library the staff member is logged in at
(the patron may well have a different home library).

Should we be checking against their home library for mandatory attributes.. or
the staff users library?

The above query gets the patrons home libraries mandatory attribute list.. but
until we know the answer to this intermediary question it's hard to know
how/when/what error to throw.

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


More information about the Koha-bugs mailing list