Does not make sense to call first in list context and later in scalar
context.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
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,
);
}