From 85edb1c65839fb00124c21a681465a0014e3b4b9 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/site@367 97e9348a-65ac-dc4b-aefc-98561f571b83 --- app_controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app_controller.php b/app_controller.php index 14ab045..aa2effa 100644 --- a/app_controller.php +++ b/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) {