Bugzilla – Attachment 184073 Details for
Bug 40285
Add template plugin to get patron attribute by code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40285: Display patron attribute description in "Patrons statistics" report
Bug-40285-Display-patron-attribute-description-in-.patch (text/plain), 1020 bytes, created by
Jonathan Druart
on 2025-07-15 08:27:24 UTC
(
hide
)
Description:
Bug 40285: Display patron attribute description in "Patrons statistics" report
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-07-15 08:27:24 UTC
Size:
1020 bytes
patch
obsolete
>From 4eabaeb6a5c7f9311e5b635fde08dc1d60fd0d2b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 15 Jul 2025 10:27:08 +0200 >Subject: [PATCH] Bug 40285: Display patron attribute description in "Patrons > statistics" report > >--- > reports/borrowers_stats.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/reports/borrowers_stats.pl b/reports/borrowers_stats.pl >index 98d675067c3..d00bd7f2a1a 100755 >--- a/reports/borrowers_stats.pl >+++ b/reports/borrowers_stats.pl >@@ -207,8 +207,9 @@ sub calculate { > } > foreach my $type ( keys %$attr_filters ) { > if ( $attr_filters->{$type} ) { >+ my $patron_attribute_type = Koha::Patron::Attribute::Types->find($type); > push @loopfilter, { >- crit => "Attribute $type", >+ crit => sprintf( "Attribute %s (%s)", $patron_attribute_type->description, $type ), > filter => $attr_filters->{$type} > }; > } >-- >2.34.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 40285
:
183855
| 184073