From 74f154fcda06d2e48de6b55c4a90614d05a95cb4 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 22 Oct 2007 19:56:26 +0000 Subject: [PATCH] changed PureName() to Name() (see r40757) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@43669 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/Form.php | 5 ++++- forms/TableField.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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