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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 8 17:48:26 CET 2021


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

--- Comment #6 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
The more I think about this, the more I think perhaps that 'mandatory' is a
purely UI concept in this case.

I can see all sorts of reasons you may have added mandatory attributes.. but
actually enforcing them would likely need to happen at whatever point the
attribute should be getting looked at rather than at the point at which it's
entered.

Examples

* An attribute that denotes permission to access certain resources at a certain
branch.
- This attribute is 'mandatory' as such at the point at which the patron wants
to gain access to the resource.. they're either given permission or not.  This
is at a branch level and is mandatory in so much as it's required prior to
being able to access the resource. We don't tie any logic to that mandatory for
that action so in reality, it's only at the data entry via the existing UI that
will take any notice of the mandatory flag.. I think the API can and probably
should safely ignore the mandatory cases when they're not set as globally
mandatory.

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


More information about the Koha-bugs mailing list