From 1b876f24f9d91ce86167beeee3f73bc0f34091f1 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 17 Mar 2021 17:14:46 -0400 Subject: [PATCH] Must have Id as well in order to know which monitor to control --- web/api/app/Controller/MonitorsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/app/Controller/MonitorsController.php b/web/api/app/Controller/MonitorsController.php index 2a6374222..184e17bb3 100644 --- a/web/api/app/Controller/MonitorsController.php +++ b/web/api/app/Controller/MonitorsController.php @@ -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'];