Must have Id as well in order to know which monitor to control
This commit is contained in:
parent
ccb1bc1a7d
commit
1b876f24f9
|
@ -344,7 +344,7 @@ class MonitorsController extends AppController {
|
|||
public function daemonControl($id, $command, $daemon=null) {
|
||||
// Need to see if it is local or remote
|
||||
$monitor = $this->Monitor->find('first', array(
|
||||
'fields' => array('Type', 'Function', 'Device', 'ServerId'),
|
||||
'fields' => array('Id', 'Type', 'Function', 'Device', 'ServerId'),
|
||||
'conditions' => array('Id' => $id)
|
||||
));
|
||||
$monitor = $monitor['Monitor'];
|
||||
|
|
Loading…
Reference in New Issue