Bug 20006: (follow-up) Fix holds.js
This patch makes holds.js call the endpoint with 'pickup_library_id' instead of the old 'branchcode' property. To test: - Place a hold - Go to the patron's detail page - Go to the Holds tab - Change the pickup location => SUCCESS: It works! Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
fc0d64506d
commit
f6b3d9979d
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ $(document).ready(function() {
|
|||
var res_id = $(this).attr('reserve_id');
|
||||
$(this).after('<div id="updating_reserveno'+res_id+'" class="waiting"><img src="/intranet-tmpl/prog/img/spinner-small.gif" alt="" /><span class="waiting_msg"></span></div>');
|
||||
var api_url = '/api/v1/holds/'+res_id;
|
||||
var update_info = JSON.stringify({ branchcode: $(this).val(), priority: parseInt($(this).attr("priority"),10) });
|
||||
var update_info = JSON.stringify({ pickup_library_id: $(this).val(), priority: parseInt($(this).attr("priority"),10) });
|
||||
$.ajax({
|
||||
method: "PUT",
|
||||
url: api_url,
|
||||
|
|
Loading…
Reference in a new issue