Commit Graph

270 Commits

Author SHA1 Message Date
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
Damian Mooyman
ad6e97dacb Add changelog for 2.0.3 release 2016-02-04 16:51:53 +13:00
Damian Mooyman
078b0f51f9 Merge pull request #44 from chillu/pulls/validate-field-fix
Validate field fix
2016-01-22 12:53:30 +13: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
Damian Mooyman
8d1cc403b9 Merge pull request #43 from helpfulrobot/update-license-year
Updated license year
2016-01-05 09:50:09 +13:00
helpfulrobot
405023a5fa Updated license year 2016-01-01 06:38:59 +13:00
Daniel Hensby
947d0f09e0 Merge pull request #30 from helpfulrobot/add-standard-scrutinizer-config
Added standard Scrutinizer config
2015-11-25 15:35:23 +00:00
Daniel Hensby
965389ded9 Merge pull request #31 from helpfulrobot/convert-to-psr-2
Converted to PSR-2
2015-11-25 15:31:30 +00:00
Daniel Hensby
3495ecf726 Merge pull request #38 from helpfulrobot/add-standard-code-of-conduct
Added standard code of conduct
2015-11-23 17:49:10 +00:00
helpfulrobot
cfb204d152 Added standard code of conduct 2015-11-21 20:11:25 +13:00
helpfulrobot
4a606eee82 Added standard Scrutinizer config 2015-11-21 19:27:50 +13:00
helpfulrobot
7ee2dcea0f Converted to PSR-2 2015-11-21 19:15:15 +13:00
Daniel Hensby
8e4f03a409 Merge pull request #33 from helpfulrobot/add-standard-travis-config
Added standard Travis config
2015-11-20 16:05:05 +00:00
Daniel Hensby
220a1e7bf6 Merge pull request #34 from helpfulrobot/add-standard-editor-config
Added standard editor config
2015-11-20 15:12:25 +00:00
Daniel Hensby
9054db2d5b Merge pull request #35 from helpfulrobot/add-standard-license
Added standard license
2015-11-19 12:03:41 +00:00
Daniel Hensby
b13161e1cd Merge pull request #36 from helpfulrobot/add-license-to-composer
Added license to composer.json
2015-11-19 12:00:18 +00:00
Daniel Hensby
2b1d357b6e Merge pull request #37 from helpfulrobot/add-standard-git-attributes
Added standard git attributes
2015-11-19 10:43:30 +00:00
helpfulrobot
df60023e1f Added standard git attributes 2015-11-19 19:09:37 +13:00
helpfulrobot
2f002bcfb8 Added license to composer.json 2015-11-19 18:54:40 +13:00
helpfulrobot
ec51614ade Added standard license 2015-11-19 18:29:00 +13:00
Damian Mooyman
ddef979901 Merge pull request #32 from scott1702/master
Add changelog for release
2015-11-19 14:55:47 +13:00
helpfulrobot
10730a4c64 Added standard Travis config 2015-11-19 14:18:04 +13:00
helpfulrobot
bc7d2c55e9 Added standard editor config 2015-11-19 13:23:15 +13:00
scott1702
c1643a85fb Add changelog for release 2015-11-18 16:50:28 +13:00
Daniel Hensby
2ee8123494 Merge pull request #29 from rasstislav/patch-1
Create sk.yml
2015-11-17 18:23:12 +00:00
rasstislav
46b0990bff Create sk.yml 2015-11-17 13:19:17 +01:00
Damian Mooyman
e7fd668474 Update translations 2015-11-17 16:07:38 +13:00
Scott Hutchinson
1f00c8df41 Merge pull request #28 from silverstripe/pulls/tests
Add tests for php 5.6 and framework 3.2
2015-10-30 18:41:31 +13:00
Damian Mooyman
961aa1832e Add tests for php 5.6 and framework 3.2 2015-10-30 17:34:50 +13:00
Damian Mooyman
09ec50bf2d Merge pull request #25 from silverstripe-rebelalliance/westpac
Fix for compatibility with userforms 3.0
2015-09-21 17:39:30 +12:00
Christopher Joe
da87f71a15 Fix for compatibility with userforms 3.0 2015-09-21 14:14:49 +12:00
Damian Mooyman
9cbb11a884 Update translations 2015-08-20 12:47:37 +12:00
Daniel Hensby
c48a4cf582 Move to new travis containerised infrastructure 2015-07-20 16:03:39 +01:00
Damian Mooyman
12947ae886 Add transifex config 2015-05-26 17:14:40 +12:00
Will Rossiter
9c649f0b6c Merge pull request #20 from Cheddam/master
FIX: Stop attempting to filter an UnsavedRelationList
2015-05-05 17:19:21 +12:00
Garion Herman
9e62b91217 BUGFIX: Stop attempting to filter an UnsavedRelationList 2015-04-30 12:25:54 +12:00
Damian Mooyman
747a801ba5 Merge pull request #19 from tractorcow/pulls/fix-tests
BUG Fix travis / unit tests
2015-03-25 12:59:49 +13:00
Damian Mooyman
c7b211e585 BUG Fix travis / unit tests 2015-03-25 08:53:17 +13:00
Sean Harvey
4478e61390 Merge pull request #18 from tractorcow/pulls/api-save-comment-spam
API Enable comments to save spam status
2015-03-24 12:26:52 +13:00
Damian Mooyman
c40d120b0d API Enable comments to save spam status 2015-03-23 17:22:13 +13:00
Damian Mooyman
ae391bcfb2 Alias master as 2.0 2015-03-23 11:35:25 +13:00
Will Rossiter
adbb4be14d BUG notice level error with statics 2015-01-31 15:34:54 +13:00
Will Rossiter
c1a8a83011 Merge pull request #17 from dhensby/master
Adding .editorconfig
2014-12-05 15:18:33 +13:00
Daniel Hensby
0a219493b4 Adding .editorconfig 2014-12-04 15:54:09 +00: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
Will Rossiter
39f7f0be45 Merge pull request #13 from tractorcow/pulls/insertbefore
API Re-introduced ability to insert spam field before another existing field
2014-03-07 20:38:25 +13:00