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

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

Return to bug 18958