fix score frameID to return ID not Score
This commit is contained in:
parent
c5e838fa33
commit
3611d147e6
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue