Bug 18647: Resolve internal server error on category_type
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 23 May 2017 12:31:01 +0000 (14:31 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Sat, 20 May 2017 13:57:14 +0000 (13:57 +0000)
See bug 18552. When we resolved the housebound_role bug, the hash got
filled correctly again. And this revealed that the (second) call to
Koha::Patrons->find was not appropriate. It can be removed, as Jonathan
explained on the report.

Note: Commit 95429af6855e8ed37945b681dc466bf360deffb added this call, but
it was hidden until the template variable hash got fixed.

Test plan:
Restart Plack and go to patron details again.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
members/moremember.pl

index 0e18d22..0649dcf 100755 (executable)
@@ -343,7 +343,6 @@ my $translated_language = C4::Languages::language_get_description( $subtag, $sub
 
 $template->param(
     patron          => $patron,
-    borrower        => $patron, # TODO Still needed by includes,
     translated_language => $translated_language,
     detailview      => 1,
     borrowernumber  => $borrowernumber,