Merge pull request #76 from creative-commoners/pulls/3.0/update-form-field

[Backport] Makes use of EditableFormField updateFormField
This commit is contained in:
Steve Boyd 2021-02-02 14:09:40 +13:00 committed by GitHub
commit 3a8702b1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

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