]> git.koha-community.org Git - koha.git/commit
Bug 21046: Return the correct borrowernumber when there is empty cardnumber(s)
authorAlex Arnaud <alex.arnaud@biblibre.com>
Fri, 6 Jul 2018 13:40:53 +0000 (13:40 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 25 Jul 2018 10:06:48 +0000 (12:06 +0200)
commit6903cc0607efa6ec5f84ac9b750fe962088d1e07
tree54c1522eee4a52389a0c82f1906836cd850f4652
parentc6e098ae0bacbf9db6f554e89ba8481e88afee1b
Bug 21046: Return the correct borrowernumber when there is empty cardnumber(s)

Test plan:
  - Use a patron with an empty cardnumber to authenticate with ILSDI
    AuthenticatePatron
    (cgi-bin/koha/ilsdi.pl?service=AuthenticatePatron&username=userid&password=pass),
  - make sure you have other patron(s) with empty cardnumber and there
    borrowernumber is
    smaller than the one you authenticate with,
  - you should get a wrong borrowernumber,
  - apply this patch,
  - test again, you should get the right one

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit e7501a92aa6b4ca91a55f984443cfcfbeb76a797)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/ILSDI/Services.pm
t/db_dependent/ILSDI_Services.t