mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 12:05:59 +00:00
14e768ca32
When using EditableSpamProtectionField with UserForms 3.0, forms with a spam protector field (defined from FormSpamProtectorExtension), form submissions return an error: PHP Fatal error: Call to a member function FormName() on a non-object This because the exemplar formField generated by getFormField() does not have any connection to the particular form being submitted. This is fixed with a simple setForm() call in the validateField() function