Don't pass request data as a monitor array to daemonControl

This commit is contained in:
Isaac Connor 2016-05-07 10:56:38 -04:00
parent 0bf54fc266
commit 15977f1a3c
1 changed files with 2 additions and 1 deletions

View File

@ -138,7 +138,8 @@ public function beforeFilter() {
'_serialize' => array('message') '_serialize' => array('message')
)); ));
// - restart this monitor after change // - 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' );
} }
/** /**