Guy Sartorelli
221089136f
Revert "fix: if no spam protector set, fail sliently"
...
This reverts commit 17106d8f30
.
2023-09-12 09:45:39 +12:00
Will Rossiter
17106d8f30
fix: if no spam protector set, fail sliently
2023-09-11 11:42:09 +12:00
Sabina Talipova
2a55708ae8
FIX Check value is not NULL
2023-01-17 08:30:17 +13:00
Steve Boyd
688b438e88
API Stop using deprecated API
2022-11-24 17:36:45 +13:00
Steve Boyd
d452367262
ENH PHP 8.1 compatibility
2022-04-13 13:47:43 +12:00
Steve Boyd
643fedaf21
FIX Allow fields without parents to be programatically created
2021-08-12 13:35:02 +12:00
3Dgoo
d5ae93c88e
Makes use of EditableFormField updateFormField
...
This fixes issue #61
2020-11-25 15:52:44 +10:30
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