mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
bdeab4d124
commit
ce8bf58b0d
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user