]> git.koha-community.org Git - koha.git/commit
Bug 29637: AutoSwitchPatron should look for card number in the barcode
authorMichael Hafen <michael.hafen@washk12.org>
Fri, 3 Dec 2021 18:43:16 +0000 (11:43 -0700)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 10 Dec 2021 12:06:00 +0000 (07:06 -0500)
commite52f48acd8bb2c837d6b67dde862448f952cd16d
tree3622752d3051b84cb99309147cb4f469dc8f2e73
parenta59db77d62d5c2cfce7010d73802a8adfbef440c
Bug 29637: AutoSwitchPatron should look for card number in the barcode

Bug 26352 changed the line in circ/circulation.pl that searches for a
patron card number in the barcode field from using the $barcode variable
to the $findborrower variable.  This breaks AutoSwitchPatron.

Test plan:

1. make sure AutoSwitchPatron system preference is on.
2. get two patron card numbers.
3. enter the first card number to check out to the patron.
4. enter the second card number in the item barcode field.
5. observe that the barcode is not found.

6. apply patch

7. enter the second card number in the item barcode field again.
8. observe that the second patron is loaded to check out to.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
circ/circulation.pl