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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 11:02:57 CET 2021


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

            Bug ID: 27857
           Summary: Koha::Patron->extended_attributes skips checks
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org

Patron attributes can have some requirements:
- Be unique across the DB
- (Not) bd repeatable

This is correctly handled by both
- Koha::Patron::Attribute->store
- Koha::Patron->add_extended_attribute

But then, there's Koha::Patron->extended_attributes, that can overwrite them
all at once, but doesn't rely on those methods, and uses DBIC relations
instead, so no checks on attribute constraints are made.

We need to fix it.

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


More information about the Koha-bugs mailing list