[Koha-bugs] [Bug 13502] A bug was introduced by 1861 - meaning borrowers sometimes cant be added
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 30 22:24:25 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13502
--- Comment #2 from Chris Cormack <chris at 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.
More information about the Koha-bugs
mailing list