Makes use of EditableFormField updateFormField

This fixes issue #61
This commit is contained in:
3Dgoo 2020-11-25 15:52:44 +10:30 committed by GitHub
parent 0db3e7aee0
commit d5ae93c88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,11 @@ class EditableSpamProtectionField extends EditableFormField
$protector->setFieldMapping($fieldMapping); $protector->setFieldMapping($fieldMapping);
// Generate field // Generate field
return $protector->getFormField($this->Name, $this->Title, null); $field = $protector->getFormField($this->Name, $this->Title, null);
$this->doUpdateFormField($field);
return $field;
} }
/** /**