Commit Graph

26 Commits

Author SHA1 Message Date
Robbie Averill
05fcdb6f41 FIX Typo in userforms form field class name 2017-08-28 17:41:04 +12:00
Robbie Averill
680411e2ac FIX Missing syntax opening in readme, and tweaks for pre-emptive userforms compatibility 2017-08-28 13:44:53 +12:00
Robbie Averill
c5f0827c2e Add namespaces, separate test classes, add PSR-4 autoloader, update PSR-2 compliance 2017-08-28 13:19:03 +12:00
Simon Erkelens
b757c3dc6d SilverStripe 4 and Namespacing 2017-08-28 13:11:48 +12:00
Robbie Averill
3e7f021de7 FIX Compatibility with userforms 3/4 getCMSFields, remove deprecated getSettings use etc 2017-07-07 16:13:10 +12:00
Robbie Averill
5cc9312a8d Move stub classes to their own files, run PSR-2 linter 2017-07-07 14:23:01 +12:00
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
Ingo Schommer
84bbe9d153 Tests for EditableSpamProtectionField validation
Requires setFormField() method to avoid excessive mocking
2016-01-08 16:35:46 +13:00
Tim Kung
529960d485 updating validateField method on EditableSpamProtectionField to use correct error message 2016-01-08 16:35:14 +13:00
helpfulrobot
7ee2dcea0f Converted to PSR-2 2015-11-21 19:15:15 +13:00
Christopher Joe
da87f71a15 Fix for compatibility with userforms 3.0 2015-09-21 14:14:49 +12:00
Garion Herman
9e62b91217 BUGFIX: Stop attempting to filter an UnsavedRelationList 2015-04-30 12:25:54 +12:00
Will Rossiter
adbb4be14d BUG notice level error with statics 2015-01-31 15:34:54 +13:00
Will Rossiter
05650e912d FIX: typo in field name 2014-09-26 08:53:55 +12:00
Damian Mooyman
9abe13fcb6 API Refactor field mapping from FormSpamProtectionExtension into SpamProtector API EditableSpamProtectionField may now be configured for spam on an individual field basis Translations added 2014-09-26 08:20:40 +12:00
Damian Mooyman
c050dcc05a API Refactor field mapping from FormSpamProtectionExtension into SpamProtector
API EditableSpamProtectionField may now be configured for spam on an individual field basis
Translations added
2014-02-19 08:40:07 +13:00
Will Rossiter
440e30b611 API: Use config / extension APIs
Overhaul of spam protection to use an extension on Form rather than the SpamProtectorManager. More fluent interface and easier to replace the built in spam protection api with an alternative.
2014-02-10 20:53:59 +13:00
Ed
704e8555cc BUGFIX: Fixed replaced deprecated FieldSet() with FieldList()
Updated graphic to look better in 3.0
2012-07-06 19:59:57 -03:00
Will Rossiter
c70f270d86 MINOR: hide required configuration, field validation is handled by the form field directly, not the form as things like widgets will always fail the built in validation. Fixes #6752 2012-04-14 23:23:38 +12:00
Carlos Barberis
feddb2cc49 BUGFIX: Added condition to verify userforms module class exists 2010-07-21 01:56:12 +00:00
Will Rossiter
78038e14ca APICHANGE: Removed getFieldName() and replaced it with getFormField(). APICHANGE: removed individual calls to update_form() on Spam Protectors to make the code simplier. APICHANGE: removed callback objects on the SpamProtectorFields as they were no longer used. APICHANGE: removed fieldMapping from individual formfields to the abstract class. MINOR: fixed misc documentation with package names 2009-09-17 04:06:53 +00:00
Will Rossiter
a6906762e0 MINOR: hide the spam protection field from the reports as it is not required 2009-07-05 06:47:43 +00:00
Andrew O'Neil
928bb4bc6e API: Fix inconsistent and incorrect spelling 2009-06-04 22:57:33 +00:00
Will Rossiter
023ef453e4 MINOR: removed field mapping for now to get field to show 2009-04-27 01:51:00 +00:00
Will Rossiter
6cbb094363 MINOR: removed dulicate template, adjusted form field to show icon location 2009-04-20 03:06:29 +00:00
Will Rossiter
05208f0aba FEATURE: added ability to create a spam protector field in user defined forms 2009-03-25 02:14:26 +00:00