[Koha-bugs] [Bug 20903] Print payment receipt on child patron could end with server error
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 11 08:27:44 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20903
--- Comment #2 from Josef Moravec <josef.moravec at gmail.com> ---
Comment on attachment 75915
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75915
Bug 20903: Remove unnecessary category code parameters
Review of attachment 75915:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=20903&attachment=75915)
-----------------------------------------------------------------
::: members/printfeercpt.pl
@@ -60,5 @@
>
> -if ( $patron->is_child ) {
> - my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
> - $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
> - $template->param( 'catcode' => $patron_categories->next->categorycde ) if $patron_categories->count == 1;
This is the code which causes problem ('categorycde' instead of
'categorycode'). But as this code is not needed, I removed whole block of code.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list