mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Don't call addFieldToTab on a tab.
This commit is contained in:
parent
5b8f6edaec
commit
0c0d0d8695
@ -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')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user