LP#1705524 Grid value filter defaults to null
authorBill Erickson <berickxx@gmail.com>
Thu, 3 Aug 2017 15:43:56 +0000 (11:43 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 11 Aug 2017 19:09:27 +0000 (15:09 -0400)
Avoid use of Perl undef in JS.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/services/grid.js

index 27344c0..1811941 100644 (file)
@@ -1940,7 +1940,7 @@ angular.module('egGridMod',
         var list = path.split('.');
         for (var part in path) {
             if (obj[path]) obj = obj[path]
-            else return undef;
+            else return null;
         }
         return obj;
     }