@@ -, +, @@ commit 26634151dbce0bf39ff6c9eda5b58bb993996a2d Bug 12063 - Fix QA failures --- reserve/placerequest.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/reserve/placerequest.pl +++ a/reserve/placerequest.pl @@ -107,14 +107,16 @@ if ( $type eq 'str8' && $borrower ) { if ($multi_hold) { my $bibinfo = $bibinfos{$biblionumber}; - AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber], + my $hold_id = AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber], $bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found); + Koha::Holds->find( $hold_id )->set_waiting if $found eq 'W'; } else { # place a request on 1st available for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) { - AddReserve( $branch, $borrower->{'borrowernumber'}, + my $hold_id = AddReserve( $branch, $borrower->{'borrowernumber'}, $biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title, $checkitem, $found, $itemtype ); + Koha::Holds->find( $hold_id )->set_waiting if $found eq 'W'; } } } --