From 9bb8b14d60f0ac7718f4e332d6d71671bccb5897 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 3484dd65f89..fffcbeb219d 100755 --- a/tools/modborrowers.pl +++ b/tools/modborrowers.pl @@ -404,7 +404,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