Lines 163-169
if ( $query->param('reserve_id') ) {
Link Here
|
163 |
ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id, $desk_id ); |
163 |
ModReserveAffect( $itemnumber, $borrowernumber, $diffBranchSend, $reserve_id, $desk_id ); |
164 |
} |
164 |
} |
165 |
# check if we have other reserves for this document, if we have a return send the message of transfer |
165 |
# check if we have other reserves for this document, if we have a return send the message of transfer |
166 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($itemnumber); |
166 |
my ( $messages, $nextreservinfo ) = GetOtherReserves( $itemnumber, C4::Context->preference('ConfirmFutureHolds') ); |
167 |
|
167 |
|
168 |
my $patron = Koha::Patrons->find( $nextreservinfo ); |
168 |
my $patron = Koha::Patrons->find( $nextreservinfo ); |
169 |
if ( $messages->{'transfert'} ) { |
169 |
if ( $messages->{'transfert'} ) { |
Lines 574-580
if ( $messages->{'ResFound'} ) {
Link Here
|
574 |
|
574 |
|
575 |
my $diffBranchSend = !$branchCheck ? $reserve->{branchcode} : undef; |
575 |
my $diffBranchSend = !$branchCheck ? $reserve->{branchcode} : undef; |
576 |
ModReserveAffect( $itemnumber, $reserve->{borrowernumber}, $diffBranchSend, $reserve->{reserve_id}, $desk_id ); |
576 |
ModReserveAffect( $itemnumber, $reserve->{borrowernumber}, $diffBranchSend, $reserve->{reserve_id}, $desk_id ); |
577 |
my ( $messages, $nextreservinfo ) = GetOtherReserves($reserve->{itemnumber}); |
577 |
my ( $messages, $nextreservinfo ) = GetOtherReserves( $reserve->{itemnumber}, C4::Context->preference('ConfirmFutureHolds') ); |
578 |
|
578 |
|
579 |
$template->param( |
579 |
$template->param( |
580 |
hold_auto_filled => 1, |
580 |
hold_auto_filled => 1, |
581 |
- |
|
|