Merged revisions 32179 via svnmerge from

svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.0-nzct

........
  r32179 | ischommer | 2007-03-14 23:34:06 +1300 (Wed, 14 Mar 2007) | 1 line
  
  Return title when calling Name(), so we can do removeByName() on "anonymous" fields
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52774 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-04-15 09:21:25 +00:00
parent bdeab4d124
commit ce8bf58b0d

View File

@ -40,5 +40,13 @@ class DatalessField extends FormField {
function performReadonlyTransformation() { function performReadonlyTransformation() {
return $this; return $this;
} }
/**
* As DatalessFields are not initialized with an ID/name,
* we keep the title for a unique reference.
*/
function Name() {
return $this->title;
}
} }
?> ?>