ID can be used to validate object

This commit is contained in:
Will Rossiter 2014-02-15 23:00:42 +13:00
parent 124d3761ee
commit b3af63e387
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class FormSpamProtectionExtension extends Extension {
* @var array $mappable_fields
*/
private static $mappable_fields = array(
'id',
'title',
'body',
'contextUrl',
@ -84,6 +85,8 @@ class FormSpamProtectionExtension extends Extension {
// add the form field
if($field = $protector->getFormField($name, $title)) {
$field->setForm($this->owner);
$this->owner->Fields()->push($field);
}