From 683c4eed4b36a5728022fdfc11debe4c9cb0124f Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Tue, 3 Mar 2015 09:34:11 -0500 Subject: [PATCH] API: Config Index action call find('hash') --- web/api/app/Controller/ConfigsController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/api/app/Controller/ConfigsController.php b/web/api/app/Controller/ConfigsController.php index 998e240fa..a1652578f 100644 --- a/web/api/app/Controller/ConfigsController.php +++ b/web/api/app/Controller/ConfigsController.php @@ -20,8 +20,10 @@ class ConfigsController extends AppController { * @return void */ public function index() { - $this->Config->recursive = 0; - $configs = $this->Config->find('all'); + $configs = $this->Config->find('hash', array( + 'fields' => array('Config.Name', 'Config.Value', 'Config.Hint', 'Config.Id') + )); + $this->set(array( 'configs' => $configs, '_serialize' => array('configs')