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

(-)a/reserve/request.pl (-6 / +5 lines)
Lines 129-135 if ($findborrower) { Link Here
129
# If we have the borrowernumber because we've performed an action, then we
129
# If we have the borrowernumber because we've performed an action, then we
130
# don't want to try to place another reserve.
130
# don't want to try to place another reserve.
131
if ($borrowernumber_hold && !$action) {
131
if ($borrowernumber_hold && !$action) {
132
    my $borrowerinfo = GetMemberDetails( $borrowernumber_hold );
132
    my $borrowerinfo = GetMember( borrowernumber => $borrowernumber_hold );
133
    my $diffbranch;
133
    my $diffbranch;
134
    my @getreservloop;
134
    my @getreservloop;
135
    my $count_reserv = 0;
135
    my $count_reserv = 0;
Lines 217-224 if ($borrowerslist) { Link Here
217
    );
217
    );
218
}
218
}
219
219
220
# FIXME launch another time GetMemberDetails perhaps until
220
# FIXME launch another time GetMember perhaps until
221
my $borrowerinfo = GetMemberDetails( $borrowernumber_hold );
221
my $borrowerinfo = GetMember( borrowernumber => $borrowernumber_hold );
222
222
223
my @biblionumbers = ();
223
my @biblionumbers = ();
224
my $biblionumbers = $input->param('biblionumbers');
224
my $biblionumbers = $input->param('biblionumbers');
Lines 373-379 foreach my $biblionumber (@biblionumbers) { Link Here
373
373
374
            # checking reserve
374
            # checking reserve
375
            my ($reservedate,$reservedfor,$expectedAt) = GetReservesFromItemnumber($itemnumber);
375
            my ($reservedate,$reservedfor,$expectedAt) = GetReservesFromItemnumber($itemnumber);
376
            my $ItemBorrowerReserveInfo = GetMemberDetails( $reservedfor, 0);
376
            my $ItemBorrowerReserveInfo = GetMember( borrowernumber => $reservedfor );
377
377
378
            if ( defined $reservedate ) {
378
            if ( defined $reservedate ) {
379
                $item->{backgroundcolor} = 'reserved';
379
                $item->{backgroundcolor} = 'reserved';
Lines 542-548 foreach my $biblionumber (@biblionumbers) { Link Here
542
        }
542
        }
543
543
544
        #     get borrowers reserve info
544
        #     get borrowers reserve info
545
        my $reserveborrowerinfo = GetMemberDetails( $res->{'borrowernumber'}, 0);
545
        my $reserveborrowerinfo = GetMember( borrowernumber => $res->{'borrowernumber'} );
546
        if (C4::Context->preference('HidePatronName')){
546
        if (C4::Context->preference('HidePatronName')){
547
	    $reserve{'hidename'} = 1;
547
	    $reserve{'hidename'} = 1;
548
	    $reserve{'cardnumber'} = $reserveborrowerinfo->{'cardnumber'};
548
	    $reserve{'cardnumber'} = $reserveborrowerinfo->{'cardnumber'};
549
- 

Return to bug 7059