[Koha-bugs] [Bug 14717] New: Adding a new patron can end up with 0000-00-00 as the debarred date

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 24 23:48:00 CEST 2015


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

            Bug ID: 14717
           Summary: Adding a new patron can end up with 0000-00-00 as the
                    debarred date
 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: chris at bigballofwax.co.nz
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

Bug 12633 introduced a bug, that where debarred is blank, the column is being
filled with 0000-00-00

You can test this by importing a patron using the import tool, the patron must
have no debarred date set. 
Then check in the DB and you will notice it has an invalid date 0000-00-00

This in turn makes Koha error in circulation as we try to truncate and invalid
date object. 


Adding $data{'debarred'} = undef if( not $data{'debarred'} ); to the AddMembers
subroutine should fix this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list