Browse Source

Bug 24410: Fix multi holds

Bug 19618 replaces the call to placerequest.pl with a REST API /holds
That is wrong as it does not support multi holds.

Test plan:
Confirm that prior to this patch you are not able to place a hold on
several records at once, and that this patch fixes it

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Agustin Moyano <agustinmoyano@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Jonathan Druart 3 years ago
committed by Martin Renvoize
parent
commit
bc94d7e659
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

4
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

@ -380,7 +380,7 @@
<fieldset class="rows">
<legend>Hold details</legend>
<form action="/api/v1/holds" method="post" name="form" id="hold-request-form">
<form action="placerequest.pl" method="post" name="form" id="hold-request-form">
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
<input type="hidden" name="type" value="str8" />
@ -1028,7 +1028,7 @@
"margin-right":"0em"
});
$("#club-request-form, #hold-request-form").on("submit", function() {
$("#club-request-form").on("submit", function() {
let $t = $(this);
$('.clubalert, .holdalert').addClass('hide');
let biblionumbers = [biblionumber];

Loading…
Cancel
Save