https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41118

            Bug ID: 41118
           Summary: jQuery Validation doesn't add correct error id to
                    flatpicker fields in patron form
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Patrons
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

I'm not sure if Patrons is right component for this but I noticed this while
working on bug 34671. When patron add/mod form is send jQuery Validation plugin
validates the fields and checks if any mandatory field is empty. If they are,
it adds an error element next to invalid field. This element has an id formed
from input fields id and string "-error", e.g. firstname field has id
"firstname-error". This however doesn't work with flatpicker fields like date
of birth field. In them id is just "-error".

To reproduce:
1. Make sure you have date of birth field set as mandatory in patron
add/modification form.
2. Add or modify patron but leave date of birth field empty.
3. Attempt to save the patron, "This field is required" message is added next
to date of birth field.
4. Inspect element with browsers devtools (right click element and select
inspect).
=> Note that element has just id "-error" attached to it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to