From e28db2d22194349e0a0120525ebfd6245626393c Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Thu, 19 Aug 2021 12:01:47 -0700 Subject: [PATCH] Fix regression for NULL valued numbers in the summary calculation --- resources/views/partials/bootstrap-table.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 04f5d4cd74..f1a2d408f6 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -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("\.","");