Skip to content

Commit

Permalink
BUGFIX: Don't call addFieldToTab on a tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed Oct 29, 2011
1 parent 5b8f6ed commit 0c0d0d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/forms/AssetTableField.php
Expand Up @@ -200,10 +200,7 @@ function getCustomFieldsFor($childData) {
} }


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')) {
Expand Down

0 comments on commit 0c0d0d8

Please sign in to comment.