Merge pull request #75 from 3Dgoo/patch-1

ENH Make use of EditableFormField updateFormField
This commit is contained in:
Steve Boyd 2021-01-14 16:16:06 +13:00 committed by GitHub
commit e717411a9d
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;
} }
/** /**