Robbie Averill
fc934d93fd
FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
2018-10-28 21:40:35 +00:00
Robbie Averill
47eef922c7
FIX Ensure getIcon returns exposed resource URL for icon
2017-11-03 11:12:20 +13:00
Robbie Averill
88b1b10f61
FIX Vendorise module, update CI to include userforms
2017-11-02 14:42:30 +13:00
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
5f8d2af0d1
Merge branch '2'
2017-08-28 11:20:58 +12:00
James Ellis
ef3e6d45b6
Configurable fieldname ( #56 )
...
* Allow for a configurable field name
* Add a test for configurable field name
* Remove extra conditional by storing the field name in a private static
* No need for field_name config removal as it's now specified as a class property
2017-08-24 11:16:19 +01: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
Damian Mooyman
c40d120b0d
API Enable comments to save spam status
2015-03-23 17:22:13 +13:00
Will Rossiter
adbb4be14d
BUG notice level error with statics
2015-01-31 15:34:54 +13:00
Will Rossiter
949ec2b359
If no protector is set then skip the form field
2014-11-12 11:24:21 +13:00
Will Rossiter
05650e912d
FIX: typo in field name
2014-09-26 08:53:55 +12:00
Will Rossiter
420a51bbb5
FIX: Ensure protector is a valid class to create
2014-09-26 08:21:06 +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
007a52eb0c
API Re-introduced ability to insert spam field before another existing field
2014-03-07 17:03:08 +13: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
b3af63e387
ID can be used to validate object
2014-02-15 23:00:42 +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
catcher
839b9e0fc9
Update 'CommenterURL' field reference to 'URL'
2013-06-10 16:46:30 -06:00
Damian Mooyman
77871a54b7
BUG Fixed incorrect field specification
...
Email spam field (for Mollom, which I presume this extension is targetting) should be author_mail not author_email
https://github.com/silverstripe/silverstripe-mollom/blob/master/code/MollomField.php#L28
2013-04-10 14:52:08 +12:00
Will Rossiter
f4917921ec
Make spamprotection for comments opt in by default
2012-12-16 11:23:40 +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
Robert Curry
76051243e3
Upgrade to be 3.0 compatible.
2012-07-06 14:43:38 +12: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
Will Rossiter
237d08d5dd
FEATURE: added extension for new comments module
2010-12-13 00:50:08 +00:00
Carlos Barberis
feddb2cc49
BUGFIX: Added condition to verify userforms module class exists
2010-07-21 01:56:12 +00:00
Saophalkun Ponlu
261a155b97
MINOR: documentation
2010-04-12 02:32:44 +00:00
Saophalkun Ponlu
1c902a19e7
BUGFIX: return false when there's no spam protector class has been specified
2010-02-02 03:04:52 +00:00
Ingo Schommer
5ac128830b
BUGFIX Don't try to instanciate new SpamProtector instances if none is set in SpamProtectorManager::update_form()
2009-11-26 20:16:37 +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
819732d910
MINOR: added package
2009-09-14 03:14:58 +00:00
Mark Stephens
3c1c9f943a
BUGFIX instantiate protector class for check to work
2009-08-18 03:37:34 +00:00
Sean Harvey
59ef9b376d
BUGFIX If spam protector class doesn't exist, a warning is thrown - however, it still tries to create the object in live mode -
...
don't allow this
2009-08-16 22:42:26 +00:00
Sean Harvey
3c9b62645f
BUGFIX If $protector is not an object, create it
2009-08-16 22:36:09 +00:00
Will Rossiter
c2315c1618
MINOR: updated set_spam_protector to throw a warning if an incorrect spam protector is detected. MINOR: added exception output to warning to make debugging easier
2009-08-11 02:51:03 +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
Will Rossiter
8f9c0ba944
BUGFIX: fixed spelling of spam protector module
2009-06-04 23:44:08 +00:00
Andrew O'Neil
928bb4bc6e
API: Fix inconsistent and incorrect spelling
2009-06-04 22:57:33 +00:00
Sean Harvey
8c17e66552
MINOR If SpamProtecter::update_form() has a problem updating the form with the spam protector, throw a warning, not a publically visible error
2009-05-25 23:26:23 +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