From 012a4418f6aac3797e5954a4ed9f55987337df7e 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 Signed-off-by: Katrin Fischer --- .../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 bc8b812f21..3281d21df4 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.5