Bugzilla – Attachment 105197 Details for
Bug 25567
borrower_attribute_types.category_code must be set to undef if not set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25567: Fix typo categorycode vs category_code
Bug-25567-Fix-typo-categorycode-vs-categorycode.patch (text/plain), 1.66 KB, created by
Jonathan Druart
on 2020-05-21 13:38:47 UTC
(
hide
)
Description:
Bug 25567: Fix typo categorycode vs category_code
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-21 13:38:47 UTC
Size:
1.66 KB
patch
obsolete
>From 21815fe3e92f48ab7da759f20f092fbf7eb830b2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 21 May 2020 15:35:33 +0200 >Subject: [PATCH] Bug 25567: Fix typo categorycode vs category_code > >Well, this is actually the real root of the error! >--- > tools/modborrowers.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/tools/modborrowers.pl b/tools/modborrowers.pl >index 6c53a23912..bb41637f9f 100755 >--- a/tools/modborrowers.pl >+++ b/tools/modborrowers.pl >@@ -132,7 +132,7 @@ if ( $op eq 'show' ) { > > my $category_code = $attr_type->category_code; > my ( $category_lib ) = map { >- ( defined $category_code and $attr_type->categorycode eq $category_code ) ? $attr_type->description : () >+ ( defined $category_code and $attr_type->category_code eq $category_code ) ? $attr_type->description : () > } @patron_categories; > push @patron_attributes_codes, > { >@@ -381,7 +381,7 @@ if ( $op eq 'do' ) { > $attribute->{attribute} = $attr_values[$i]; > my $attr_type = Koha::Patron::Attribute::Types->find($_); > # If this borrower is not in the category of this attribute, we don't want to modify this attribute >- ++$i and next if $attr_type->category_code and $attr_type->category_code ne $patron->category_code; >+ ++$i and next if $attr_type->category_code and $attr_type->category_code ne $patron->categorycode; > my $valuename = "attr" . $i . "_value"; > if ( grep { $_ eq $valuename } @disabled ) { > # The attribute is disabled, we remove it for this borrower ! >-- >2.20.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 25567
:
105194
|
105195
|
105197
|
105208
|
105209
|
105221
|
105222