fix: API index answers 400 for a list in sort or direction instead of a 500 (#8427)

This commit is contained in:
Harsh Singh authored and GitHub committed 2026-11-27 08:40:13 -05:00
1 parent b5e6456b15
commit fa28222141
7 files changed
+76

No files matched your search

@@ -44,6 +44,7 @@ class LogsController extends AppController {
$this->Paginator->settings['conditions'] = $this->FilterComponent->buildFilter($this->request->params['named'], array_keys($this->Log->schema()));
}
$this->requireScalarSort();
$logs = $this->Paginator->paginate('Log');
$this->set(compact('logs'));
}