diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
index c33f33f9b0..c18ea1068b 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
@@ -252,7 +252,7 @@
[% IF remaining_holds_for_record > 1 %]
-
+
[% ELSE %]
@@ -827,8 +827,10 @@
});
if(onechecked == 1){
$("#requestany").prop("checked", false);
+ $("#holds_to_place_count").prop('disabled', true);
} else {
$("#requestany").prop("checked",true);
+ $("#holds_to_place_count").prop('disabled', false);
}
});
var prev_rank_request;
diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl
index 1e49a4bd78..35add4829a 100755
--- a/reserve/placerequest.pl
+++ b/reserve/placerequest.pl
@@ -93,9 +93,12 @@ if ( $type eq 'str8' && $borrower ) {
if ( $item->biblionumber ne $biblionumber ) {
$biblionumber = $item->biblionumber;
}
- }
-
- if ($multi_hold) {
+ if ( CanItemBeReserved($borrower->{'borrowernumber'}, $item->itemnumber, $branch)->{status} eq 'OK' ) {
+ AddReserve( $branch, $borrower->{'borrowernumber'},
+ $biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title,
+ $checkitem, $found, $itemtype );
+ }
+ } elsif ($multi_hold) {
my $bibinfo = $bibinfos{$biblionumber};
if ( CanBookBeReserved($borrower->{'borrowernumber'}, $biblionumber)->{status} eq 'OK' ) {
AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber],