9afc8e96f3
To reproduce the bug: - Go to Home > Circulation > Checkouts > [a patron] - Enter 0 (zero) in barcode field and hit Enter 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 473 To test: - Apply patch - Repeat steps above - Verify that the sofware error is gone and that you get a message as with other invalid barcodes. - Test with other values: '00', '000', existing barcode, and a barcode that does not exist - Test with empty barcode (for printing slip) - Search for regressions This patch implements Jonathan's solution (see comment #15) Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> |
||
---|---|---|
.. | ||
add_message.pl | ||
bookcount.pl | ||
branchoverdues.pl | ||
branchtransfers.pl | ||
circulation-home.pl | ||
circulation.pl | ||
del_message.pl | ||
hold-transfer-slip.pl | ||
offline-mf.pl | ||
offline.pl | ||
on-site_checkouts.pl | ||
overdue.pl | ||
pendingreserves.pl | ||
renew.pl | ||
reserveratios.pl | ||
returns.pl | ||
selectbranchprinter.pl | ||
transfer-slip.pl | ||
transferstoreceive.pl | ||
view_holdsqueue.pl | ||
waitingreserves.pl | ||
ypattrodue-attr-search-authvalue.pl | ||
ysearch.pl |