[Koha-bugs] [Bug 34671] New: Collapsing fields in patron form allows saving without mandatory fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 31 08:17:38 CEST 2023


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

            Bug ID: 34671
           Summary: Collapsing fields in patron form allows saving without
                    mandatory fields
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: emmi.takkinen at koha-suomi.fi
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

We've had cases where user has been able to save patron without address. It
turned out that if one collapses patron entry fields validating those fields no
longer works even if they are marked as mandatory.

To reproduce:
1. Make sure you have "Main address" fields set as mandatory with
BorrowerMandatoryField syspref (address, city, zipcode)
2. Add new patron, fill in some info, but leave "Main address" fields empty.
3. Attempt to save.
=> "This field is mandatory" should be displayed next to the address fields.
4. Collapse "Main address" section.
5. Attempt to save again.
=> Patron is saved successfully without address information.  

I'm using address section as an example here, but this happens with every other
fields as well. I was able to save patron without surname and date of birth
this way.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list