Bugzilla – Attachment 166119 Details for
Bug 36772
OPAC self checkout accepts wrong or partial barcodes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36772: OPAC Self checkout accepts wrong or partial barcodes
Bug-36772-OPAC-Self-checkout-accepts-wrong-or-part.patch (text/plain), 1.58 KB, created by
Matt Blenkinsop
on 2024-05-03 12:36:03 UTC
(
hide
)
Description:
Bug 36772: OPAC Self checkout accepts wrong or partial barcodes
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-05-03 12:36:03 UTC
Size:
1.58 KB
patch
obsolete
>From 4ee1b5ae1583696c537641d2e939c5229dc78eab Mon Sep 17 00:00:00 2001 >From: Jan Kissig <jkissig@th-wildau.de> >Date: Fri, 3 May 2024 14:11:58 +0200 >Subject: [PATCH] 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> >--- > koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js b/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js >index e1bfe78b2b..9495d02ee4 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js >@@ -118,7 +118,7 @@ $(document).ready(function() { > > let item_id; > let items = $.ajax({ >- url: "/api/v1/public/items?external_id=" + external_id, >+ url: "/api/v1/public/items?_match=exact&external_id=" + external_id, > headers: { > "x-koha-embed": "biblio", > }, >-- >2.37.1 (Apple Git-137.1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36772
:
166118
|
166119
|
166629