From 857389c7ff855664c0bc705624e9ebddb1e4a233 Mon Sep 17 00:00:00 2001 From: 3Dgoo Date: Wed, 25 Nov 2020 15:52:44 +1030 Subject: [PATCH] Makes use of EditableFormField updateFormField This fixes issue #61 --- code/EditableSpamProtectionField.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/EditableSpamProtectionField.php b/code/EditableSpamProtectionField.php index c31207d..6260b03 100644 --- a/code/EditableSpamProtectionField.php +++ b/code/EditableSpamProtectionField.php @@ -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; } /**