]> git.koha-community.org Git - koha.git/commit
Bug 13502: Code introcduced in 1861 wrongly assumes a null userid is unique
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 30 Dec 2014 21:20:59 +0000 (10:20 +1300)
committerMason James <mtj@kohaaloha.com>
Fri, 23 Jan 2015 07:00:37 +0000 (20:00 +1300)
commit8552175a50e4e0d9b2cbcdc18055c16a6fbebae2
treef6ccdb5be28f365f36c5e1673760b712c4937385
parente3f9cc32f4d8f09bfa3a78abe305d63f4c3cf5a7
Bug 13502: Code introcduced in 1861 wrongly assumes a null userid is unique

To test

1/ Create a borrower with '' as their userid, you may have to edit a
   row in the db to do this
2/ Run  perl t/db_dependent/Circulation/CheckIfIssuedToPatron.t
3/ Notice some tests fail and you see
   DBD::mysql::st execute failed: Duplicate entry '' for key 'userid'
   at /home/chrisc/git/catalyst-koha/C4/SQLHelper.pm line 184.
4/ Apply the patch
5/ Run the tests again, notice they now pass

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>
C4/Members.pm