]> git.koha-community.org Git - koha.git/commit
Bug 5681: Fixes leading zeroes in Add Mulpiple Copies
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 15 Dec 2010 19:28:03 +0000 (20:28 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 2 Feb 2011 21:08:50 +0000 (10:08 +1300)
commit4f7bcdcbae336d7cceb71b60f77a8ba2249b0f54
tree60533693e713002c9df4ec4b749cca1dbf275f90
parent428556cd130db0cfcffd6fe081f32dc1218a904f
Bug 5681: Fixes leading zeroes in Add Mulpiple Copies

From Biblibre:
I don't know why, but removing sprintf solves the problems with leading zeroes
and the problems with large values.

(written by jean-andrĂ© santoni)

Note from Chris:

The width is never set, so the sprintf always defaults to a float, which
trims the leading zeros. I am not smart enough to figure out how to set
a valid width when calling it, and removing the sprintf seems to work
See http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5681 for
test results

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Barcodes.pm