Bug 33173: Save and continue button in standard cataloging module broken
authorNick Clemens <nick@bywatersolutions.com>
Wed, 8 Mar 2023 18:49:57 +0000 (18:49 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 Mar 2023 13:15:41 +0000 (10:15 -0300)
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 <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt

index 27f0754..8dd7e58 100644 (file)
         });
         $("#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;