[Koha-bugs] [Bug 32604] New: Patron categories upper age limit not respected when creating a patron

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 10 13:36:18 CET 2023


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

            Bug ID: 32604
           Summary: Patron categories upper age limit not respected when
                    creating a patron
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          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

Koha treats patron categories upper age limit inconsistently. E.g. if child
patron category's upper age limit is 18, one is still able to add child patron
who is 18 years old. However, when cronjob update_patrons_category.pl is run,
patrons over and exactly aged 18 are considered overaged and their categorycode
is updated. We should either fix patron creation or cronjob to avoid confusion.

To test:
1. Add upper age limit as 18 for child patron category. 
2. Create a child patron whose age is 18.
3. Save.
=> Patron is saved successfully.
4. Run cronjob update_patrons_category.pl with verbose option.
perl update_patrons_category.pl --too_old --from CHILD --to ADULT -v
=> Note that patron is reported as updated (or would have updated) as an adult
patron.

-- 
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