From 23f1e16a7ea5053505ee9c87367124dfda4ad32d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 25 Jul 2024 16:43:12 +0000 Subject: [PATCH] Bug 35044: (QA follow-up): Remove useless code Most definitely a copy paste error. I've tested and retested this particular JS piece of code, works as intended before and after removing this badly copy pasted code. I'm surprised this wasn't causing a console error. Signed-off-by: Julian Maurice https://bugs.koha-community.org/show_bug.cgi?id=25044 --- .../intranet-tmpl/prog/en/modules/admin/additional-fields.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt index 22499ca66a..aa8556dad9 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt @@ -311,7 +311,7 @@ alert(_("You cannot select an authorised value category and a MARC field") ); return false; } - } $("#repeatable").prop('checked') == true + } if ( $("#marcfield").length && $("#repeatable").length) { if ( $("#marcfield").val().length > 0 && $("#repeatable").prop('checked') == true ) { alert(_("You cannot set a MARC field as repeatable") ); -- 2.39.2