We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6b53e commit 8112057Copy full SHA for 8112057
src/DataTableState.php
@@ -89,6 +89,11 @@ public function applyParameters(ParameterBag $parameters): void
89
$this->start = (int) $parameters->get('start', $this->start);
90
$this->length = (int) $parameters->get('length', $this->length);
91
92
+ // DataTables insists on using -1 for infinity
93
+ if ($this->length < 1) {
94
+ $this->length = null;
95
+ }
96
+
97
$search = $parameters->all()['search'] ?? [];
98
$this->setGlobalSearch($search['value'] ?? $this->globalSearch);
99
0 commit comments