From 0c0d0d86950b7c0f56e59b09ceb9b81ca35c70fc Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 29 Oct 2011 18:08:13 +1300 Subject: [PATCH] BUGFIX: Don't call addFieldToTab on a tab. --- code/forms/AssetTableField.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/forms/AssetTableField.php b/code/forms/AssetTableField.php index 7b0f185c..28d6c5fb 100644 --- a/code/forms/AssetTableField.php +++ b/code/forms/AssetTableField.php @@ -200,10 +200,7 @@ class AssetTableField extends ComplexTableField { } if(!($childData instanceof Folder)) { - $mainTab->addFieldToTab( - 'BottomRoot.Main', - new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch')) - ); + $mainTab->push(new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch'))); } if($childData && $childData->hasMethod('BackLinkTracking')) {