From 35e117fb91e794d77b47f8668c0f9e1a1ddd4e63 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 8 Mar 2023 18:49:57 +0000 Subject: [PATCH] Bug 33173: Save and continue button in standard cataloging module broken To test: 1 - Edit a record in the standard editor 2 - Click on to tab 2 3 - Click 'Save and continue' 4 - Error: tab is not defined 5 - Apply patch 6 - Reload page and try again 7 - Fixed! Signed-off-by: Laura Escamilla Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index 27f0754625..8dd7e58409 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -129,8 +129,7 @@ }); $("#saveandcontinue").click(function(){ $(".btn-group").removeClass("open"); - var tab = $("#addbibliotabs li.ui-tabs-active:first a").attr('href'); - tab = tab.replace('#', ''); + var tab = $("#addbibliotabs div.active:first").attr('id'); $("#current_tab").val(tab); redirect("just_save", tab); return false; -- 2.39.5