fix: [logs:index] Fixed UI pagination in application logs

pull/9715/head
Sami Mokaddem 2024-04-25 14:46:22 +02:00
parent 89a6cbdfe6
commit 7416a9dd97
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ class LogsController extends AppController
$this->paginate['conditions']['Log.action'] = $validFilters[$this->params['named']['filter']]['values'];
}
foreach ($filters as $key => $value) {
if ($key == 'page' || $key == 'limit') { // These should not be part of the condition parameter
continue;
}
if ($key === 'created') {
$key = 'created >=';
}