diff --git a/web/api/app/Controller/EventsController.php b/web/api/app/Controller/EventsController.php index 71d9633a0..2a0f735eb 100644 --- a/web/api/app/Controller/EventsController.php +++ b/web/api/app/Controller/EventsController.php @@ -151,7 +151,7 @@ class EventsController extends AppController { $event['Event']['PrevOfMonitor'] = $event_monitor_neighbors['prev']['Event']['Id']; $this->loadModel('Frame'); - $event['Event']['MaxScoreFrameId'] = $this->Frame->findByEventid($id,'Score','Score DESC')['Frame']['Score']; + $event['Event']['MaxScoreFrameId'] = $this->Frame->findByEventid($id,'Id','Score DESC')['Frame']['Id']; $event['Event']['AlarmFrameId'] = $this->Frame->findByEventidAndType($id,'Alarm')['Frame']['Id']; $this->set(array(