mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fix regression for NULL valued numbers in the summary calculation
This commit is contained in:
parent
7b447a2f16
commit
e28db2d221
|
@ -596,6 +596,9 @@
|
|||
}
|
||||
|
||||
function cleanFloat(number) {
|
||||
if(!number) { // in a JavaScript context, meaning, if it's null or zero or unset
|
||||
return 0.0;
|
||||
}
|
||||
if ("{{$snipeSettings->digit_separator}}" == "1.234,56") {
|
||||
// yank periods, change commas to periods
|
||||
periodless = number.toString().replace("\.","");
|
||||
|
|
Loading…
Reference in a new issue