Merge pull request #1467 from ZoneMinder/api_fixes

Don't pass request data as a monitor array to daemonControl
pull/1538/head
Isaac Connor 2016-05-07 18:25:35 -04:00
commit 966a9dcd8d
1 changed files with 2 additions and 1 deletions

View File

@ -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' );
}
/**