Fixed hard crash caused by the form not being stored on the field in SS3.0

This commit is contained in:
Ed 2012-03-24 13:38:13 -03:00
parent 237d08d5dd
commit 3746398025

View File

@ -13,6 +13,14 @@ abstract class SpamProtectorField extends FormField {
*/
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;
}
}
/**
* Set the fields to map spam protection too