BUGFIX: Stop attempting to filter an UnsavedRelationList

This commit is contained in:
Garion Herman 2015-04-30 12:25:54 +12:00
parent 747a801ba5
commit 9e62b91217

View File

@ -73,6 +73,10 @@ if(class_exists('EditableFormField')) {
$protector = FormSpamProtectionExtension::get_protector();
if (!$protector) return $fields;
if ($this->Parent()->Fields() instanceof UnsavedRelationList) {
return $fields;
}
// Each other text field in this group can be assigned a field mapping
$mapGroup = FieldGroup::create(_t(
'EditableSpamProtectionField.SPAMFIELDMAPPING',