Bug 20443: Move GetBorrowerAttributes to Koha::Patron->extended_attributes
[koha.git] / Koha / Patrons / Import.pm
index 3b3d586..5fe9476 100644 (file)
@@ -299,7 +299,7 @@ sub import_patrons {
             }
             if ($extended) {
                 if ($ext_preserve) {
-                    my $old_attributes = GetBorrowerAttributes($borrowernumber);
+                    my $old_attributes = $patron->get_extended_attributes->as_list;
                     $patron_attributes = extended_attributes_merge( $old_attributes, $patron_attributes );
                 }
                 push @errors, { unknown_error => 1 }