From 145bc398c12f6b02e4de9d9e917f28190a344762 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Thu, 3 Oct 2024 18:22:39 +0000 Subject: [PATCH] Bug 38082: Advanced editor does not save the selected framework When creating a fresh record in the advanced editor, it does not save the framework selected from the Settings dropdown. Test plan: ========== 1. Enable the advanced editor feature (EnableAdvancedCatalogingEditor). 2. Start editing a new record in the advanced editor. Fill in the mandatory fields, select a framework (other than Default) from the Settings dropdown, save the record. 3. Select view -- note that the record has been saved with the Default framework. 4. Apply the patch; restart_all; refresh the browser window. 5. Repeat p. 2. 6. Select view -- you should now see that the record has been saved with the correct, selected framework. Signed-off-by: Roman Dolny Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js index 00959be93c..7bae56d62a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js +++ b/koha-tmpl/intranet-tmpl/prog/js/fetch/cataloguing-api-client.js @@ -12,7 +12,7 @@ export class CataloguingAPIClient extends HttpClient { return { create: bib_info => this.post({ - endpoint: "new_bib/frameworkcode=%s".format( + endpoint: "new_bib/?frameworkcode=%s".format( bib_info.frameworkcode ), body: bib_info.record.toXML(), -- 2.39.5