Bug 20508

Summary: Validation for *MandatoryField and *UnwantedField sysprefs
Product: Koha Reporter: Barton Chittenden <barton>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: bklein, gmcharlt, magnus
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17433
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22720
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29823
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Barton Chittenden 2018-04-02 15:16:55 UTC
When any the system preferences

    BorrowerMandatoryField
    BorrowerUnwantedField
    PatronSelfModificationBorrowerUnwantedField
    PatronSelfRegistrationBorrowerMandatoryField
    PatronSelfRegistrationBorrowerUnwantedField

are being populated, we should check that

a) The entered fields are columns in the borrowers table
b) Mandatory / Unwanted fields that refer to the same form (BorrowerMandatoryField/BorrowerUnwantedField and PatronSelfRegistrationBorrowerMandatoryField/PatronSelfRegistrationBorrowerUnwantedField) do not contain the same fields.
c) If autoMemberNum is set, don't allow cardnumber in *MandatoryField

See also:

* Bug 17433
* Bug 19642
* Bug 19225
Comment 1 Brian 2018-11-01 20:20:52 UTC
Any updates on bug 20508?

Carnegie Stout Team