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

@ -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;
}
}
/**