I did try doing that but on that line there is only a closing bracket. This is toward the end of the entire code. And this all there is.
before that..there is only one time that class form is mentioned at the very beginning
/**
* Test an ajax submission of this form.
* @return SS_HTTPResponse the response object that the handling controller produces. You can interrogate this in your unit test.
*/
function testAjaxSubmission($action, $data) {
$data['ajax'] = 1;
return $this->testSubmission($action, $data);
}
}
/**
* @package forms
* @subpackage core
*/
class Form_FieldMap extends ViewableData {
protected $form;
function __construct($form) {
$this->form = $form;
parent::__construct();
}
/**
* Ensure that all potential method calls get passed to __call(), therefore to dataFieldByName
*/
function hasMethod($method) {
return true;
}
function __call($method, $args = null) {
return $this->form->Fields()->fieldByName($method);
}
}