From 2c0205be74d92c2f109285e2fc43cfe87ef89bfa Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Thu, 16 Oct 2025 16:48:26 +0000 Subject: [PATCH] Bug 41035: remove invalid path component 'item' To test: 1. Create a record as a collection with leader 007 set to c 2. Add some items on the same branch to the bundle 3. Check one item in 4. Observe that you get a 404 error and the item is not removed from the bundle 5. Apply the patch 6. Repeat step 3 7. Observe that the item is correctly removed (unlinked) from the bundle 8. Sign off Signed-off-by: Roman Dolny --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 31bea0dc2b..a6dbcf2745 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1735,7 +1735,7 @@ var component_itemnumber = $(this).data('itemnumber'); var host_itemnumber = $(this).data('hostnumber'); var alert = $(this).closest('div'); - var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/item/" + component_itemnumber; + var unlink_item_url = "/api/v1/items/" + host_itemnumber + "/bundled_items/" + component_itemnumber; $.ajax({ type: "DELETE", url: unlink_item_url, -- 2.39.5