From 4eabaeb6a5c7f9311e5b635fde08dc1d60fd0d2b Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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