Bug 36772: OPAC Self checkout accepts wrong or partial barcodes
authorJan Kissig <jkissig@th-wildau.de>
Fri, 3 May 2024 12:11:58 +0000 (14:11 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 29 May 2024 12:36:51 +0000 (14:36 +0200)
commit300037199095f4a4fd933866ae166e21b0e8881b
tree26cc25bdd06994f894b0df35048408c8fa466cdb
parentebf17477c072559edea84a484b94374d1f44bf0c
Bug 36772: OPAC Self checkout accepts wrong or partial barcodes

    When using the opac trusted checkout feature it is possible to enter non existant or partial barcodes to check out items.

    Testplan:
    a) set  System preference OpacTrustedCheckout  to Allow
    b) go to http://localhost:8080/ and login with koha / koha
    c) click Self Checkout in navigation bar
    d) enter barcode 1234
    e) result: Item '39999000011234' was checked out

    apply patch and reload the page

    a) now enter barcode 1234
    b) result: Item '1234' not found
    c) enter 39999000011234
    d) result: Item '39999000011234' was checked out

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2884226fe27cd3e4d5f4a070405c047183fed881)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js