Bugzilla – Attachment 190021 Details for
Bug 34671
Collapsing fields in patron form allows saving without mandatory fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34671: Ignore hidden dateofbirth field
0001-Bug-34671-Ignore-hidden-dateofbirth-field.patch (text/plain), 1.50 KB, created by
Emmi Takkinen
on 2025-11-28 11:59:14 UTC
(
hide
)
Description:
Bug 34671: Ignore hidden dateofbirth field
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2025-11-28 11:59:14 UTC
Size:
1.50 KB
patch
obsolete
>From e795c51767444c1d8a193f163bda8c49d26529ca Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34671
:
155643
|
156145
|
156263
|
156264
|
156453
|
156454
|
158168
|
158299
|
158524
|
158525
|
158526
|
184067
|
184068
|
184069
|
185285
|
186952
| 190021 |
190024