ENHANCEMENT TableField_Item->createFields() returns FieldSet instead of DataObjectSet (merged from branches/2.3-nzct)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@82075 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-07-17 00:15:39 +00:00
parent 92aecd6ab6
commit 9a43bbc1ed

View File

@ -707,6 +707,8 @@ class TableField_Item extends TableListField_Item {
}
/**
* Represents each cell of the table with an attribute.
*
* @return FieldSet
*/
function createFields() {
// Existing record
@ -799,7 +801,7 @@ class TableField_Item extends TableListField_Item {
$i++;
}
}
return new DataObjectSet($this->fields);
return new FieldSet($this->fields);
}
function Fields() {