Merge pull request #20 from Cheddam/master

FIX: Stop attempting to filter an UnsavedRelationList
This commit is contained in:
Will Rossiter 2015-05-05 17:19:21 +12:00
commit 9c649f0b6c

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',