From 15977f1a3ce0e5a1ae2d0fa140f9f2c4f0b70cb0 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 7 May 2016 10:56:38 -0400 Subject: [PATCH] Don't pass request data as a monitor array to daemonControl --- web/api/app/Controller/MonitorsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/api/app/Controller/MonitorsController.php b/web/api/app/Controller/MonitorsController.php index 11857942c..f4e3cc719 100644 --- a/web/api/app/Controller/MonitorsController.php +++ b/web/api/app/Controller/MonitorsController.php @@ -138,7 +138,8 @@ public function beforeFilter() { '_serialize' => array('message') )); // - restart this monitor after change - $this->daemonControl($this->Monitor->id, 'restart', $this->request->data); + // We don't pass the request data as the monitor object because it may be a subset of the full monitor array + $this->daemonControl( $this->Monitor->id, 'restart' ); } /**