BUGFIX: Don't call addFieldToTab on a tab.

This commit is contained in:
Sam Minnee 2011-10-29 18:08:13 +13:00
parent 5b8f6edaec
commit 0c0d0d8695

View File

@ -200,10 +200,7 @@ class AssetTableField extends ComplexTableField {
} }
if(!($childData instanceof Folder)) { if(!($childData instanceof Folder)) {
$mainTab->addFieldToTab( $mainTab->push(new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch')));
'BottomRoot.Main',
new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch'))
);
} }
if($childData && $childData->hasMethod('BackLinkTracking')) { if($childData && $childData->hasMethod('BackLinkTracking')) {