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@lists.koha-community.org Reporter: chris@bigballofwax.co.nz QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@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.