[Koha-bugs] [Bug 27956] New: Catch extended attributes exceptions in controllers

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 15 14:31:55 CET 2021


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

            Bug ID: 27956
           Summary: Catch extended attributes exceptions in controllers
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: tomascohen at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

Bug 27857 proposes to add the (previously skipped) required validation to the
Koha::Patron->extended_attributes setter. We need to adjust the callers so they
have better handling of this new exceptions:

$ git grep '\->extended_attributes('
C4/Auth_with_ldap.pm:                   
$patron->extended_attributes([$attribute->unblessed]);
Koha/Patrons/Import.pm:                   
$patron->extended_attributes($patron_attributes);
Koha/Patrons/Import.pm:                   
$patron->extended_attributes($patron_attributes);
members/memberentry.pl:           
$patron->extended_attributes($extended_patron_attributes);
opac/opac-memberentry.pl:               
$patron->extended_attributes($attributes);
t/db_dependent/Koha/Patron/Modifications.t:   
$patron_modification->extended_attributes(
t/db_dependent/Koha/Patrons.t:   
$patron_1->extended_attributes($attributes_for_1);
t/db_dependent/Koha/Patrons.t:       
$patron_2->extended_attributes($attributes_for_2);
t/db_dependent/Koha/Pseudonymization.t:   
$patron->extended_attributes($attribute_values);
t/db_dependent/Utils/Datatables_Members.t:Koha::Patrons->find(
$john_doe->{borrowernumber} )->extended_attributes(
t/db_dependent/Utils/Datatables_Members.t:Koha::Patrons->find(
$jane_doe->{borrowernumber} )->extended_attributes(
t/db_dependent/Utils/Datatables_Members.t:Koha::Patrons->find(
$john_smith->{borrowernumber} )->extended_attributes(

-- 
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