From 30cd699b113e93e8863509984885308a61a19d21 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 14 Dec 2020 12:27:05 -0300 Subject: [PATCH] Bug 18729: Adapt holds.js Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 364183507d..c38e4f6d03 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -228,7 +228,7 @@ $(document).ready(function() { $.ajax({ method: "PUT", url: api_url, - data: $(this).val(), + data: JSON.stringify({ "pickup_library_id": $(this).val() }), success: function( data ){ holdsTable.api().ajax.reload(); }, error: function( jqXHR, textStatus, errorThrown) { alert('There was an error:'+textStatus+" "+errorThrown); -- 2.11.0