Fix regression for NULL valued numbers in the summary calculation
This commit is contained in:
parent
7b447a2f16
commit
e28db2d221
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue