[Koha-bugs] [Bug 28031] Koha::Patron::Attribute->_check_repeatable doesn't exclude the object's ID
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 9 10:12:47 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28031
--- Comment #14 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
1.
Patches applied on top of the whole tree
# Failed test 'globally mandatory attributes tests'
# at t/db_dependent/Koha/Patron.t line 661.
# Looks like you failed 1 test of 15.
t/db_dependent/Koha/Patron.t .. 7/7
# Failed test 'extended_attributes'
# at t/db_dependent/Koha/Patron.t line 664.
Can't locate object method "value" via package
"Koha::Exceptions::Patron::MissingMandatoryExtendedAttribute" at
t/db_dependent/Koha/Patron.t line 650.
2.
Why Koha::Patron::Attribute->type does not look like
return Koha::Patron::Attribute::Type->_new_from_dbic( $self->_result->code );
3. Additionally I don't agree with the "cache", simply because the following
code will be wrong:
$attr->type($new_code)->store;
my $type = $attr->type; # will get the old type
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list