Skip to content

Commit

Permalink
Makes use of EditableFormField updateFormField
Browse files Browse the repository at this point in the history
This fixes issue #61
  • Loading branch information
3Dgoo authored and emteknetnz committed Feb 2, 2021
1 parent 856cc80 commit 857389c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/EditableSpamProtectionField.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ public function getFormField()
$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;
}

/**
Expand Down

0 comments on commit 857389c

Please sign in to comment.