]> git.koha-community.org Git - koha.git/commit
Bug 1861 [QA Followup] - Fix Check_Userid and unit tests
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 3 Nov 2014 12:38:48 +0000 (07:38 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 29 Dec 2014 19:20:10 +0000 (08:20 +1300)
commit5296fe954512022adb754c6cfa5bcad0ba8cb609
tree4b83e4b931fb1036e5c36e83adabc161ec8cdd9f
parent5e707555f88edb5beb2c63e0dbcef698907e44d6
Bug 1861 [QA Followup] - Fix Check_Userid and unit tests

Check_Userid assumes that a borrowernumber will always be passed in
and thus fails to to return 0 for an already used userid when creating
a new patron.

Unit tests must now also me modified to no longer assume it is possible
to create multiple patrons with the same userid.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 7135364dd23442c38bed986b2540ab63cfd06ce1)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Members.pm
t/db_dependent/Members.t