Add fileExists to event view

This commit is contained in:
Isaac Connor committed 2018-05-07 14:07:03 -07:00
1 parent 9c44f56f37
commit 1a012c62ff
1 file changed
+2
@@ -125,6 +125,8 @@ class EventsController extends AppController {
$event['Event']['Next'] = $event_neighbors['next']['Event']['Id'];
$event['Event']['Prev'] = $event_neighbors['prev']['Event']['Id'];
$event['Event']['fileExists'] = $this->Event->fileExists($event['Event']);
# Also get the previous and next events for the same monitor
$event_monitor_neighbors = $this->Event->find('neighbors', array(
'conditions'=>array('Event.MonitorId'=>$event['Event']['MonitorId'])