Bugzilla – Attachment 133104 Details for
Bug 21083
Batch patron modification does not allow to modify repeatable patron attributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21083: Remove all attributes
Bug-21083-Remove-all-attributes.patch (text/plain), 974 bytes, created by
Jonathan Druart
on 2022-04-08 07:29:05 UTC
(
hide
)
Description:
Bug 21083: Remove all attributes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-04-08 07:29:05 UTC
Size:
974 bytes
patch
obsolete
>From 9bb8b14d60f0ac7718f4e332d6d71671bccb5897 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21083
:
105201
|
133104
|
149749
|
149750
|
152707
|
152708
|
153421
|
153422
|
153423