]> 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)
committerHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 27 Jan 2009 11:19:42 +0000 (12:19 +0100)
commitd7a0dcc55b2459a47d6371e5e849db4b36040099
tree492f23986f3674582abcdc912e74ff41d927887f
parent1503a9099ed0c7117725e1434b2ba10acf873aa4
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]