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

Aleisha Amohia <aleishaamo...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45661|0                           |1
        is obsolete|                            |

--- Comment #6 from Aleisha Amohia <aleishaamo...@hotmail.com> ---
Created attachment 45873
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45873&action=edit
Bug 14015 - Checkout: Fix software error if barcode '0' is given

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

Note: I tried to create an item with barcode '0' to test that
      case as well, but it was not possible. Giving the
      possibility to create an item with barcode '0' is not in
      the scope of this bug.

(Amended for better formatting of commit message)

I was able to reproduce the warn and patch works correctly.

Signed-off-by: Aleisha <aleishaamo...@hotmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to