Bug 35679

Summary: dateofbirthrequired column from categories table should be renamed
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26297
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35539
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Pedro Amorim 2024-01-02 09:37:53 UTC
git grep dateofbirthrequired

The column dateofbirthrequired in the categories table has a confusing name.
It sort of implies a boolean (i.e. whether date of birth is required or not), but it's actually utilized as a lower age limit check in the business logic.

The column's comment states "the minimum age required for the patron category" which is how the data in this column is utilized.