Skip to content
This repository
Browse code

ENHANCEMENT Allow editing of new File.ShowInSearch flag through Asset…

…TableField
  • Loading branch information...
commit bb757d13a4142a4b0fab680240bde1a064c338a4 1 parent d15e850
Ingo Schommer authored September 15, 2011

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  code/AssetTableField.php
6  code/AssetTableField.php
@@ -194,6 +194,12 @@ function getCustomFieldsFor($childData) {
194 194
 				)
195 195
 			);
196 196
 		}
  197
+		
  198
+		if(!($childData instanceof Folder)) {
  199
+			$mainTab->push(
  200
+				new CheckboxField("ShowInSearch", $childData->fieldLabel('ShowInSearch'))
  201
+			);
  202
+		}
197 203
 
198 204
 		if($childData && $childData->hasMethod('BackLinkTracking')) {
199 205
 			if(class_exists('Subsite')) Subsite::disable_subsite_filter(true);

0 notes on commit bb757d1

Please sign in to comment.
Something went wrong with that request. Please try again.