From 0ba5007438b4af5a8c11b27253feee52bca5c30e Mon Sep 17 00:00:00 2001 From: abijah Date: Thu, 23 Jul 2009 01:11:30 +0000 Subject: [PATCH] Changed the default table configuration to be link instead of contain. contain was never really desired, it just got thrown in there since it wasn't clear how link would behave, and we needed the essential effect of recursive=-1. git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@367 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/app_controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/app_controller.php b/site/app_controller.php index 14ab045..aa2effa 100644 --- a/site/app_controller.php +++ b/site/app_controller.php @@ -288,10 +288,10 @@ class AppController extends Controller { */ function gridDataFilterTables(&$params, &$model, $query) { - if (isset($query['link'])) - $link = 'link'; - else + if (isset($query['contain'])) $link = 'contain'; + else + $link = 'link'; if (empty($params['post']['filter'])) return $query; @@ -432,7 +432,7 @@ class AppController extends Controller { } function gridDataTables(&$params, &$model) { - return array('contain' => false); + return array('link' => array()); } function gridDataTableSet(&$params, &$model) {