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)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:27 +0000 (21:15 +0200)
commit589c7e3a7347956745028c0f48c58b47e8cf933f
tree3202d9e4dca4dc2eb2730a1fa4dd8e768802133e
parent1bb6b10032c4b6469ca89f0895dab6a3e470b945
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>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
tools/import_borrowers.pl