Must load ServerId so that we can tell if it is local or remote
This commit is contained in:
parent
f3ea237af1
commit
28a004c324
|
@ -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'),
|
||||
'fields' => array('Type', 'Function', 'Device', 'ServerId'),
|
||||
'conditions' => array('Id' => $id)
|
||||
));
|
||||
$monitor = $monitor['Monitor'];
|
||||
|
|
Loading…
Reference in New Issue