mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Fixed hard crash caused by the form not being stored on the field in SS3.0
This commit is contained in:
parent
237d08d5dd
commit
3746398025
@ -12,6 +12,14 @@ abstract class SpamProtectorField extends FormField {
|
||||
* @var array
|
||||
*/
|
||||
private $spamFieldMapping = array();
|
||||
|
||||
function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null) {
|
||||
parent::__construct($name, $title, $value);
|
||||
|
||||
if(!empty($form)) {
|
||||
$this->form=$form;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user