[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
Wed Dec 31 12:13:54 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13502

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #34832|0                           |1
        is obsolete|                            |

--- Comment #6 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 34834
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34834&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

Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>

-- 
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