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

            Bug ID: 30978
           Summary: Potential data loss when using Quick add new patron
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Patrons
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

When using the Quick add new patron form with mandatory fields, if a mistake is
made, data can be lost.

To replicate:

- In System Preferences, go to:  BorrowerMandatoryField
- Put in some mandatory fields - e.g. firstname, surname, cardnumber
- Go to Patrons
- Press +Quick add new patron
- Choose patron as a category type
- Note that firstname, surname and cardnumber are all mandatory fields
- Put data into firstname and cardnumber
- Do not put any data in surname
- Press Save

The form will not submit because surname is a required field - and a prompt is
shown:  "This field is required."

- Now correct your mistake and fill in the surname
- Press Save
- The form now submits and creates an account - but the corrected surname field
is still blank

I've tested this with a range of fields - and I've added 10 mandatory fields
and submitted a form with 2, then corrected 4, then submitted again etc - and
the form always sends the very first version and disregards any amendments.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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