silverstripe-spamprotection/code
Ian Walls 14e768ca32 Set Form for formField when validating
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
2016-03-02 11:55:53 -05:00
..
extensions Converted to PSR-2 2015-11-21 19:15:15 +13:00
interfaces Converted to PSR-2 2015-11-21 19:15:15 +13:00
EditableSpamProtectionField.php Set Form for formField when validating 2016-03-02 11:55:53 -05:00
SpamProtectorManager.php Converted to PSR-2 2015-11-21 19:15:15 +13:00