Don't do pagination in events.This may break users of API but pagination should only happen if asked for

This commit is contained in:
Isaac Connor committed 2025-06-11 14:57:54 -04:00
1 parent 9d0f2c25bb
commit d97b37f83f
1 file changed
+2 -11
+2 -11
View File
@@ -99,17 +99,8 @@ class EventsController extends AppController {
}
$settings['conditions'] = array($conditions, $mon_options);
// How many events to return
$this->loadModel('Config');
$limit = $this->Config->find('list', array(
'conditions' => array('Name' => 'ZM_WEB_EVENTS_PER_PAGE'),
'fields' => array('Name', 'Value')
));
$this->Paginator->settings = $settings;
$events = $this->Paginator->paginate('Event');
// For each event, get the frameID which has the largest score
// also add FS path
$events = $this->Event->find('all', $settings);
// For each event, get the frameID which has the largest score also add FS path
foreach ( $events as $key => $value ) {
$EventObj = new ZM\Event($value['Event']);