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.
2 parents 648c417 + 05ee35c commit f576488Copy full SHA for f576488
src/app/Http/Controllers/Operations/ListOperation.php
@@ -79,6 +79,13 @@ public function search()
79
$length = (int) request()->input('length');
80
$search = request()->input('search');
81
82
+ // check if length is allowed by developer
83
+ if ($length && ! in_array($length, $this->crud->getPageLengthMenu()[0])) {
84
+ return response()->json([
85
+ 'error' => 'Unknown page length.',
86
+ ], 400);
87
+ }
88
+
89
// if a search term was present
90
if ($search && $search['value'] ?? false) {
91
// filter the results accordingly
0 commit comments