From 8359fecb5f8b5879b5f1322ca97f3b7293bc665c 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 --- 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.30.2