[Koha-bugs] [Bug 14015] Checkout: Fix software error if barcode '0' is given

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 24 13:20:27 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14015

--- Comment #11 from Marc Véron <veron at veron.ch> ---
Hi Marcel,

I re-tested and reproduced with 3.22.00.000 on our demo installation and with
current master 3.23.00.000 on my development vm.

Test 1:
- Go to "My Checkouts"
- Enter 0 (zero) in barcode field and hit Enter

Expected result: Message that barcode 0 does not exist

Result: 
Software error.
Can't use string ("1") as a HASH ref while "strict refs" in use at
/usr/share/kohaclone/circ/circulation.pl line 470
(Like in comment #2)

Test 2:
- Search a patron and got to the checkout page
- Enter 0 (zero) in barcode filed and hit Enter

Expected result: Message that barcode 0 does not exist

Result: Checkout page loads (circ/circulation.pl). You have to search the
patron again to proceed.
(Like in comment #1)

For some patrons I get the result 1 (patrons with staff permissions), for
others I get the result 2 ('normal' patrons).

The reason for both is that the borrowernumber is set to '' in
circ/circulation.pl line 235 (because of $print eq 'yes' evaluates to true
which is wrong, $print should not be 'yes' here).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list