Skip to content

Commit

Permalink
Merge pull request #76 from creative-commoners/pulls/3.0/update-form-…
Browse files Browse the repository at this point in the history
…field

[Backport] Makes use of EditableFormField updateFormField
  • Loading branch information
emteknetnz authored Feb 2, 2021
2 parents 856cc80 + 857389c commit 3a8702b
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 3a8702b

Please sign in to comment.