From 0a01ef7c7608b3ed5e9ca9a87ec7fe40a9cacec8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 8 Apr 2022 09:28:40 +0200 Subject: [PATCH] Bug 21083: Remove all attributes not only the first one --- tools/modborrowers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl index 2c7f2e589e1..2eb4dbf5af5 100755 --- a/tools/modborrowers.pl +++ b/tools/modborrowers.pl @@ -409,7 +409,7 @@ if ( $op eq 'do' ) { if ( $attributes->{$code}->{disabled} ) { # The attribute is disabled, we remove it for this borrower ! eval { - $patron->get_extended_attribute($code)->delete; + $patron->extended_attributes->search({'me.code' => $code})->filter_by_branch_limitations->delete; }; push @errors, { error => $@ } if $@; } else { -- 2.25.1