mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-12-03 06:55:38 -05:00
fix: API index answers 400 for a list in sort or direction instead of a 500 (#8427)
This commit is contained in:
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'));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user