diff --git a/web/api/app/Controller/ConfigsController.php b/web/api/app/Controller/ConfigsController.php index 651f5724e..e70978246 100644 --- a/web/api/app/Controller/ConfigsController.php +++ b/web/api/app/Controller/ConfigsController.php @@ -14,6 +14,23 @@ class ConfigsController extends AppController { */ 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 *