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

(-)a/members/discharge.pl (+3 lines)
Lines 102-107 if ( $input->param('borrowernumber') ) { Link Here
102
        borrowernumber => $borrowernumber,
102
        borrowernumber => $borrowernumber,
103
    });
103
    });
104
104
105
    my ($picture, $dberror) = GetPatronImage($borrowernumber);
106
    $template->param( picture => 1 ) if $picture;
107
105
    $template->param(
108
    $template->param(
106
        borrowernumber    => $borrowernumber,
109
        borrowernumber    => $borrowernumber,
107
        biblionumber      => $data->{'biblionumber'},
110
        biblionumber      => $data->{'biblionumber'},
(-)a/members/pay.pl (-4 / +2 lines)
Lines 136-141 sub add_accounts_to_template { Link Here
136
136
137
    $template->param(%$borrower);
137
    $template->param(%$borrower);
138
138
139
    my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
140
    $template->param( picture => 1 ) if $picture;
139
    $template->param(
141
    $template->param(
140
        accounts => $accounts,
142
        accounts => $accounts,
141
        borrower => $borrower,
143
        borrower => $borrower,
Lines 224-233 sub borrower_add_additional_fields { Link Here
224
    } elsif ( $b_ref->{category_type} eq 'A' ) {
226
    } elsif ( $b_ref->{category_type} eq 'A' ) {
225
        $b_ref->{adultborrower} = 1;
227
        $b_ref->{adultborrower} = 1;
226
    }
228
    }
227
    my ( $picture, $dberror ) = GetPatronImage( $b_ref->{borrowernumber} );
228
    if ($picture) {
229
        $b_ref->{has_picture} = 1;
230
    }
231
    my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $borrower->{streettype} );
229
    my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $borrower->{streettype} );
232
    $b_ref->{roadtype} = $roadtype;
230
    $b_ref->{roadtype} = $roadtype;
233
231
(-)a/members/paycollect.pl (-5 / +3 lines)
Lines 175-184 sub borrower_add_additional_fields { Link Here
175
    } elsif ( $b_ref->{category_type} eq 'A' ) {
175
    } elsif ( $b_ref->{category_type} eq 'A' ) {
176
        $b_ref->{adultborrower} = 1;
176
        $b_ref->{adultborrower} = 1;
177
    }
177
    }
178
    my ( $picture, $dberror ) = GetPatronImage( $b_ref->{borrowernumber} );
178
179
    if ($picture) {
179
    my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
180
        $b_ref->{has_picture} = 1;
180
    $template->param( picture => 1 ) if $picture;
181
    }
182
181
183
    if (C4::Context->preference('ExtendedPatronAttributes')) {
182
    if (C4::Context->preference('ExtendedPatronAttributes')) {
184
        $b_ref->{extendedattributes} = GetBorrowerAttributes($borrowernumber);
183
        $b_ref->{extendedattributes} = GetBorrowerAttributes($borrowernumber);
185
- 

Return to bug 15353