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 Steve Boyd
parent 856cc80ffa
commit 857389c7ff

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;
} }
/** /**