Must load ServerId so that we can tell if it is local or remote

This commit is contained in:
Isaac Connor 2021-01-27 11:44:10 -05:00
parent f3ea237af1
commit 28a004c324
1 changed files with 1 additions and 1 deletions

View File

@ -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'];