From e67afd9a6cd6f42d485656085ddeb209b6af5853 Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Wed, 31 Jul 2024 13:46:22 +0000 Subject: [PATCH] Bug 37536: Update conditional to check for 'cud-saveitem' In additem.pl and additem.tt all instances of 'saveitem' have been updated to 'cud-save-item' The javascript needs to be updated in the same way. Test plan: 1. Same as test plan from Bug 22669. Same symptom. QA notes: 1. git grep 'saveitem' 2. Notice all instances in additem.pl and additem.tt have been updated to 'cud-saveitem' 3. Notice cataloging_additem.js checks if op != 'saveitem' 4. Check the files and verify the change makes sense Signed-off-by: Victor Grousset/tuxayo --- koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js index 06fc9137e5..c8a2189b83 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js @@ -9,7 +9,7 @@ $(document).ready(function(){ // otherwise the deletion confirmation will not work correctly $('a[href*="biblionumber="]').off('click'); - if( popup && op != 'saveitem' ){ + if( popup && op != 'cud-saveitem' ){ window.close(); } -- 2.46.0