@@ -, +, @@ --- tools/viewlog.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/tools/viewlog.pl +++ a/tools/viewlog.pl @@ -73,9 +73,9 @@ if ( $src eq 'circ' ) { use C4::Members::Attributes qw(GetBorrowerAttributes); my $borrowernumber = $object; my $patron = Koha::Patrons->find( $borrowernumber ); + my $circ_info = 1; unless ( $patron ) { - print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber"); - exit; + $circ_info = 0; } if ( C4::Context->preference('ExtendedPatronAttributes') ) { my $attributes = GetBorrowerAttributes( $borrowernumber ); @@ -87,7 +87,7 @@ if ( $src eq 'circ' ) { $template->param( patron => $patron, - circulation => 1, + circulation => $circ_info, ); } --