From 3d97f7b22507116c3f74374bfdc415cacedbbb34 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 --- 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 ff5767036bd..1df369344e7 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.29.2