From 9b8b18151d7773fe811742cdbf7998a15b70bf27 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 12 Aug 2016 12:56:22 +0100 Subject: [PATCH] Bug 15407: Uniformise calls in patron-attr-types Does not make sense to call first in list context and later in scalar context. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- admin/patron-attr-types.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/patron-attr-types.pl b/admin/patron-attr-types.pl index 8d44f70b66..1fcbc7cdc3 100755 --- a/admin/patron-attr-types.pl +++ b/admin/patron-attr-types.pl @@ -271,12 +271,12 @@ sub edit_attribute_type_form { category_description => $attr_type->category_description, ); - my @patron_categories = Koha::Patron::Categories->search({}, {order_by => ['description']}); + my $patron_categories = Koha::Patron::Categories->search({}, {order_by => ['description']}); $template->param( attribute_type_form => 1, edit_attribute_type => 1, confirm_op => 'edit_attribute_type_confirmed', - categories => \@patron_categories, + categories => $patron_categories, ); } -- 2.39.5