http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13502 --- Comment #2 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 34832 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34832&action=edit 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 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.