[Koha-bugs] [Bug 11698] can't create a budget

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Feb 9 15:05:48 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11698

Jacek Ablewicz <abl at biblos.pk.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abl at biblos.pk.edu.pl

--- Comment #2 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
Such thing happens after adding budget with 90071992547410 total amount or more
- that's roughly 5x US national debt ;).
Plus, Koha accepts "Total amount" entered in scientific notation (eg. 1e14) so
this might be the result of the typo.

Note #1: after it happens, I think it's not possible to delete such offending
budget in any normal way; it needs to be deleted directly from the
aqbudgetperiods table (or one can craft an url with
...?delete_confirmed=1&budget_period_id=.. to do so).
Note #2: this bug may be not reproducible in older installations
(Number::Format module version < 1.72)

I guess an easy fix for this bug would be to add an extra validity check in
javascript, so the form will not allow to save the budget if total amount
entered is greater then 2**53/100. But - what if there are some people who need
to use such big numbers in acquisition (think Zimbabwe..)?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list