Hi all,
After upgrading to SilverStripe 2.4.3, i am getting the next error when display a form:
Fatal error: Call to a member function updateFieldSet() on a non-object in F:\xampp\xampp\htdocs\site\sapphire\forms\Form.php on line 445
For any reason the $token variable not have value, i modified the function as follow:
....
public function getExtraFields() {
$extraFields = new FieldSet();
$token = $this->getSecurityToken();
if ($token) {
$tokenField = $token->updateFieldSet($this->fields);
if($tokenField) $tokenField->setForm($this);
$this->securityTokenAdded = true;
}
....
I'm missing something ?
Thanks in advance
Ricardo