View | Details | Raw Unified | Return to bug 21242
Collapse All | Expand All

(-)a/tools/viewlog.pl (-4 / +3 lines)
Lines 73-81 if ( $src eq 'circ' ) { Link Here
73
    use C4::Members::Attributes qw(GetBorrowerAttributes);
73
    use C4::Members::Attributes qw(GetBorrowerAttributes);
74
    my $borrowernumber = $object;
74
    my $borrowernumber = $object;
75
    my $patron = Koha::Patrons->find( $borrowernumber );
75
    my $patron = Koha::Patrons->find( $borrowernumber );
76
    my $circ_info = 1;
76
    unless ( $patron ) {
77
    unless ( $patron ) {
77
        print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber");
78
         $circ_info = 0;
78
        exit;
79
    }
79
    }
80
    if ( C4::Context->preference('ExtendedPatronAttributes') ) {
80
    if ( C4::Context->preference('ExtendedPatronAttributes') ) {
81
        my $attributes = GetBorrowerAttributes( $borrowernumber );
81
        my $attributes = GetBorrowerAttributes( $borrowernumber );
Lines 87-93 if ( $src eq 'circ' ) { Link Here
87
87
88
    $template->param(
88
    $template->param(
89
        patron      => $patron,
89
        patron      => $patron,
90
        circulation => 1,
90
        circulation => $circ_info,
91
    );
91
    );
92
}
92
}
93
93
94
- 

Return to bug 21242