[Koha-bugs] [Bug 7453] New: Borrower without expiry date breaks opac login

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 20 07:57:27 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7453

             Bug #: 7453
           Summary: Borrower without expiry date breaks opac login
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: OPAC
        AssignedTo: oleonard at myacpl.org
        ReportedBy: katrin.fischer at bsz-bw.de
         QAContact: ian.walls at bywatersolutions.com


I ran into this problem while testing, because of some circumstances that are
probably very rare:

1) the admin user from patron sample data has no expiry date
2) the sample patrons are written into the database directly
3) I used password change and didn't open the patron record for editing, so the
expiry date didn't get calculated

I think it's not possible to add a patron without expiry date using the patron
import tool or the staff interface.

But if you follow the described steps or set a patron record's expiry date to
NULL in your database, you will get a perl error on login into OPAC:

opac-user.pl: Date::Calc::Add_Delta_Days(): not a valid date at
/home/koha2/koha/opac/opac-user.pl line 112., ...

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list