From bb757d13a4142a4b0fab680240bde1a064c338a4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 15 Sep 2011 16:17:47 +0200 Subject: [PATCH] ENHANCEMENT Allow editing of new File.ShowInSearch flag through AssetTableField --- code/AssetTableField.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/AssetTableField.php b/code/AssetTableField.php index 7d822cf0..84da21ed 100755 --- a/code/AssetTableField.php +++ b/code/AssetTableField.php @@ -194,6 +194,12 @@ class AssetTableField extends ComplexTableField { ) ); } + + if(!($childData instanceof Folder)) { + $mainTab->push( + new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch')) + ); + } if($childData && $childData->hasMethod('BackLinkTracking')) { if(class_exists('Subsite')) Subsite::disable_subsite_filter(true);