Permalink
Browse files

BUGFIX: Don't call addFieldToTab on a tab.

  • Loading branch information...
1 parent 5b8f6ed commit 0c0d0d86950b7c0f56e59b09ceb9b81ca35c70fc @sminnee sminnee committed Oct 29, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 code/forms/AssetTableField.php
@@ -200,10 +200,7 @@ function getCustomFieldsFor($childData) {
}
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')) {

0 comments on commit 0c0d0d8

Please sign in to comment.