Bug 15479 Make ILS cardnumber comparison case insensitive
commitac0f57fd61beb547b9836b4818b6388d9cf22c95
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 6 Jan 2016 12:56:24 +0000 (6 12:56 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 1 Mar 2016 13:53:22 +0000 (1 14:53 +0100)
treef73f6a2f1e863a6756446005d6330aad09588d69
parent8b56c981d25912affd38df6d09a42d2074045cd8
Bug 15479 Make ILS cardnumber comparison case insensitive

The borrowers table is defined COLLATE=utf8_unicode_ci which means
that cardnumbers may be saved in either lowercase or uppercase and
these are considered equivalent.
The server was performing a case sensitive comparison between
the incoming patron identifier and that retrieved from the db
As a result some renewals were rejected as being on loan to
another borrower if the stored cardnumber differed in case.

Make code comparison comply with db.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 203659ee60b25614eecd01f69e23e3be57952707)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 619060799d5b89c22fe83dfecc229b84a638b0da)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/SIP/ILS.pm