From 0257d068b12b4fd289bc0d449c4ae31c9a84f6ea Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 28 Apr 2022 10:28:58 +0000 Subject: [PATCH] Bug 22785: (follow-up) Update contentType in request Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 8755cb7202..e62ed34c69 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -623,7 +623,8 @@ $.ajax({ url: '/api/v1/import/[% import_batch_id | html %]/records/'+$(this).data('import_record_id')+'/matches/chosen', method: apimethod, - data: apidata + data: apidata, + contentType: 'application/json' }).fail(function(){ alert(_("Unable to update match choices")); return false; }); }); -- 2.39.5