bug 2287: handle case where autoMemberNum is off
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 8 May 2009 13:44:03 +0000 (08:44 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 8 May 2009 13:46:43 +0000 (08:46 -0500)
commit80eecc3f198315c0f1b63eccb799d753add2e95d
tree7dcf59d394281a93922e6243e237d612d8941207
parent9fb2d09ffc0d2de1235356b6f5394b5329c4f8c2
bug 2287: handle case where autoMemberNum is off

When importing a patron file where new records
do not have a card number *and* autoMemberNum is
off, make sure that bororwers.cardnumber is set to NULL
for those new patrons rather than '' - otherwise, only
one patron with an empty barcode can be created, as there is
a uniqueness constraint on borrowers.cardnumber

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
tools/import_borrowers.pl