MINOR: hide required configuration, field validation is handled by the form field directly, not the form as things like widgets will always fail the built in validation. Fixes #6752

This commit is contained in:
Will Rossiter 2012-04-14 23:23:38 +12:00
parent 237d08d5dd
commit c70f270d86

View File

@ -17,9 +17,19 @@ if(class_exists('EditableFormField')){
if($protector = SpamProtectorManager::get_spam_protector()) { if($protector = SpamProtectorManager::get_spam_protector()) {
if($protector) { if($protector) {
$protector = new $protector(); $protector = new $protector();
return $protector->getFormField($this->Name, $this->Title, null); return $protector->getFormField($this->Name, $this->Title, null);
} }
} }
return false;
}
function getFieldValidationOptions() {
return new FieldSet();
}
function getRequired() {
return false; return false;
} }