[Koha-bugs] [Bug 21083] Batch patron modification does not allow to modify repeatable patron attributes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 22 09:45:33 CEST 2020


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

--- Comment #3 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I think the following changes should be applied to
Koha::Patron->extended_attributes

diff --git a/Koha/Patron.pm b/Koha/Patron.pm
index 5436ccc448..cf8264a308 100644
--- a/Koha/Patron.pm
+++ b/Koha/Patron.pm
@@ -1482,6 +1482,9 @@ sub extended_attributes {

                 # Insert the new ones
                 for my $attribute (@$attributes) {
+                    # FIXME It seems that we need this check here
+                    next if $attribute->category_code &&
$attribute->category_code ne $self->categorycode;
+
                     eval {
                         $self->_result->create_related('borrower_attributes',
$attribute);
                     };


However it's not needed for this bug report.

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


More information about the Koha-bugs mailing list