Merge pull request #955 from pliablepixels/953-configs-API-fix

Fixed Configs API to return all values
This commit is contained in:
Andrew Bauer 2015-07-21 12:42:41 -05:00
commit a6a33fa77f
1 changed files with 17 additions and 0 deletions

View File

@ -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
* *