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 <julian.maurice@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-07-25 16:43:12 +00:00 committed by Katrin Fischer
parent afe1d0a4c6
commit 012a4418f6
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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") );