Merge pull request #955 from pliablepixels/953-configs-API-fix
Fixed Configs API to return all values
This commit is contained in:
commit
a6a33fa77f
|
@ -14,6 +14,23 @@ class ConfigsController extends AppController {
|
||||||
*/
|
*/
|
||||||
public $components = array('RequestHandler');
|
public $components = array('RequestHandler');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PP - resolves the issue of not returning all config parameters
|
||||||
|
* refer https://github.com/ZoneMinder/ZoneMinder/issues/953
|
||||||
|
* index method
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function index() {
|
||||||
|
$this->Config->recursive = 0;
|
||||||
|
$configs = $this->Config->find('all');
|
||||||
|
$this->set(array(
|
||||||
|
'configs' => $configs,
|
||||||
|
'_serialize' => array('configs')
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* view method
|
* view method
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue