fix one row trimmed off if iDisplayLength==-1
diff --git a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js
index b479e87..f7872cc 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xosHelper.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xosHelper.js
@@ -1007,7 +1007,9 @@
aaData.sort(function(a,b) { return compareColumns(sortCols, sortDirs, a, b); });
// slice it for pagination
- aaData = aaData.slice(iDisplayStart, iDisplayStart+iDisplayLength);
+ if (iDisplayLength >= 0) {
+ aaData = aaData.slice(iDisplayStart, iDisplayStart+iDisplayLength);
+ }
return fnCallback({iTotalRecords: totalSize,
iTotalDisplayRecords: filteredSize,