From e795c51767444c1d8a193f163bda8c49d26529ca Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Tue, 28 Oct 2025 14:24:42 +0200 Subject: [PATCH 1/2] Bug 34671: Ignore hidden dateofbirth field Flatpicker adds its own field as date of birth field and simply hides the input field its added to. This lead to situation where if date of birth field was empty, "This field is required" message was still added to hidden input field. This patch adds "dateofbirth" field as ignored field in form validation function to prevent extra required message. To test: 1. Make sure date of birth field is mandatory. 2. Add or modify patron and leave date of birth field empty. 3. Attempt to save the patron. => Note that "This field is required" message is displayed before and after date of birth field. 4. Apply this patch. 5. Repeat steps 2. and 3. => Note that message is now displayed only after the date of birth field. Sponsored-by: Koha-Suomi Oy --- koha-tmpl/intranet-tmpl/prog/js/members.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js index 644813d547..e9ffc898c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/members.js +++ b/koha-tmpl/intranet-tmpl/prog/js/members.js @@ -345,7 +345,7 @@ $(document).ready(function () { ); $("#entryform").validate({ - ignore: "", + ignore: "#dateofbirth", rules: { email: { email: true, -- 2.34.1