fix score frameID to return ID not Score

This commit is contained in:
Pliable Pixels 2020-03-09 11:25:07 -04:00
parent c5e838fa33
commit 3611d147e6
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class EventsController extends AppController {
$event['Event']['PrevOfMonitor'] = $event_monitor_neighbors['prev']['Event']['Id']; $event['Event']['PrevOfMonitor'] = $event_monitor_neighbors['prev']['Event']['Id'];
$this->loadModel('Frame'); $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']; $event['Event']['AlarmFrameId'] = $this->Frame->findByEventidAndType($id,'Alarm')['Frame']['Id'];
$this->set(array( $this->set(array(