]> 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 Nighswonger <chris.nighswonger@gmail.com>
Wed, 2 Feb 2011 22:10:05 +0000 (17:10 -0500)
commit9746035a7546c88138fee640bb26cf562d02f197
treecabd09d87813d7aac028e4cfb14543c41a074777
parent2db0ea15f74ff8233f896ba8f33feeb15771c855
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>
(cherry picked from commit 4f7bcdcbae336d7cceb71b60f77a8ba2249b0f54)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Barcodes.pm