diff --git a/web/app/Controller/EventsController.php b/web/app/Controller/EventsController.php index 63fc38262..5779d6f87 100644 --- a/web/app/Controller/EventsController.php +++ b/web/app/Controller/EventsController.php @@ -12,9 +12,10 @@ class EventsController extends AppController { public function index() { -# $this->set('events', $this->Event->find('all', array('limit' => 1000))); $data = $this->paginate('Event'); $this->set('events', $data); + $options = array('fields' => array('DISTINCT Monitor.Id')); + $this->set('monitors', $this->Event->Monitor->Find('all', $options)); } public function view($id = null) {