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

(-)a/circ/returns.pl (-21 / +1 lines)
Lines 165-190 if ( $query->param('reserve_id') ) { Link Here
165
        # diffBranchSend tells ModReserveAffect whether document is expected in this library or not,
165
        # diffBranchSend tells ModReserveAffect whether document is expected in this library or not,
166
        # i.e., whether to apply waiting status
166
        # i.e., whether to apply waiting status
167
        ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id );
167
        ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id );
168
    }
168
        ModItemTransfer( $itemnumber, $userenv_branch, $diffBranchSend ) if $diffBranchSend;
169
#   check if we have other reserves for this document, if we have a return send the message of transfer
170
    my ( $messages, $nextreservinfo ) = GetOtherReserves($itemnumber);
171
172
    my $patron = Koha::Patrons->find( $nextreservinfo );
173
    my $name   = $patron ? $patron->surname . ", " . $patron->title . " " . $patron->firstname : '';
174
    if ( $messages->{'transfert'} ) {
175
        $template->param(
176
            itemtitle      => $biblio->title,
177
            itemnumber     => $item->itemnumber,
178
            itembiblionumber => $biblio->biblionumber,
179
            iteminfo       => $biblio->author,
180
            name           => $name,
181
            borrowernumber => $borrowernumber,
182
            borcnum        => $patron->cardnumber,
183
            borfirstname   => $patron->firstname,
184
            borsurname     => $patron->surname,
185
            borcategory    => $patron->category->description,
186
            diffbranch     => 1,
187
        );
188
    }
169
    }
189
}
170
}
190
171
191
- 

Return to bug 18958