From 92fd5cd2ec1c17e7db8c8683ad83549f76abf1c0 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 Signed-off-by: Martin Renvoize --- 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.20.1