]> git.koha-community.org Git - koha.git/commit
barcodedecode() did not always return barcode
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 2 Jan 2009 20:35:03 +0000 (14:35 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 5 Jan 2009 21:55:14 +0000 (15:55 -0600)
commit9dbd65da27f86ccc6a48e416698820f27a01d6ff
tree499c547198c1273b960683e21da3b7f9b5736627
parent76309ae328ee76c9a663bdef76d4493dcc6f4317
barcodedecode() did not always return barcode

This patch amends the function to return barcode, in particular when
filter is not defined.  It also adds an optional 2nd argument to
allow the filter to be specified by caller, enabling testing.

Non-DB-dependent test script included.  Note: T-prefix style
barcode filter is not documented, and drops the first nonzero
digit after the T.  This seems mistaken, but is not corrected here
to avoid any surprises.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Circulation.pm
t/Circulation_barcodedecode.t [new file with mode: 0644]