From 88be91a7869491859e56a5c78dcd7075b68b01bc 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 Signed-off-by: Philip Orr Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- tools/modborrowers.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl index 2c7f2e589e..2eb4dbf5af 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.39.5