diff --git a/forms/Form.php b/forms/Form.php index a156ba2d1..4488cd37c 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -317,7 +317,10 @@ class Form extends ViewableData { return $this->class . '_' . str_replace('.','',$this->name); } - function PureName(){ + /** + * @return string + */ + function Name(){ return $this->name; } diff --git a/forms/TableField.php b/forms/TableField.php index 647354025..4d884bb3c 100644 --- a/forms/TableField.php +++ b/forms/TableField.php @@ -503,7 +503,7 @@ class TableField extends TableListField { // TODO doesn't automatically update validation when adding a row foreach($fields as $field) { //if the field type has some special specific specification for validation of itself - $js .= $field->jsValidation($this->form->class."_".$this->form->PureName()); + $js .= $field->jsValidation($this->form->class."_".$this->form->Name()); } // TODO Implement custom requiredFields