Merge pull request #1494 from pliablepixels/1493-api-fix-add-monitor-daemonc
don't pass partial data to daemoncontrol
This commit is contained in:
commit
47db5819db
|
@ -103,7 +103,7 @@ public function beforeFilter() {
|
||||||
|
|
||||||
$this->Monitor->create();
|
$this->Monitor->create();
|
||||||
if ($this->Monitor->save($this->request->data)) {
|
if ($this->Monitor->save($this->request->data)) {
|
||||||
$this->daemonControl($this->Monitor->id, 'start', $this->request->data);
|
$this->daemonControl($this->Monitor->id, 'start');
|
||||||
return $this->flash(__('The monitor has been saved.'), array('action' => 'index'));
|
return $this->flash(__('The monitor has been saved.'), array('action' => 'index'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue