]> git.koha-community.org Git - koha.git/commit
Bug 21262: Do not format numbers for editing if too big
authorNick Clemens <nick@bywatersolutions.com>
Thu, 23 Aug 2018 14:44:31 +0000 (14:44 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 24 Sep 2018 10:16:42 +0000 (12:16 +0200)
commit29891abbf82692f7f13952537ce601f6e6f4ef15
tree9b5e7ac7d6037179e956d023d37562eb299d913a
parent69e6348e373a1f54dd6af6e75d306a01d040ab49
Bug 21262: Do not format numbers for editing if too big

This patch copies the code from bug 15770 to the format_for_editing
sub.

It also corrects schema issue, listing the purpose for two acq columns
instead of claing unused

To test:
1 - Edit a fund
2 - Set warning at amount to: 100000000000000
3 - Save budget
4 - Try to edit - internal server error
5 - Apply patch
6 - Should be able to edit budget
7 - Number should appear unformatted

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2 quick notes:
1. Code must be moved to a subroutine if reused later
2. It would have prefered to have the comment of the 2 DB columns on a separate patch
(even separate bug report). As it's minor and that the patch will certainly backported
I will not block it.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7a84297ac4b29f4bdaf1bc4d01def71eb924d4fa)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit ad16c9f5b20525303eb631107883cb37e36de8cd)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Number/Price.pm
installer/data/mysql/kohastructure.sql