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)) {
$mainTab->addFieldToTab(
'BottomRoot.Main',
new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch'))
);
$mainTab->push(new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch')));
}
if($childData && $childData->hasMethod('BackLinkTracking')) {