From 57d2657d28f32ef7541da5b7c9f6410be112bbbd 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 (cherry picked from commit 35e117fb91e794d77b47f8668c0f9e1a1ddd4e63) Signed-off-by: Matt Blenkinsop (cherry picked from commit b0d758cf2d5a15392ccd551f1b0a012a14e2d57e) Signed-off-by: Lucas Gass (cherry picked from commit dcf364bebaf88121ed37f6694dc103645e8d5585) Signed-off-by: Arthur Suzuki --- .../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 8cc8036e6d..ca1f81a101 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -119,8 +119,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