From b6f88036eb4de556a1ac410326e7742223a43e9e Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Tue, 27 Sep 2011 11:55:49 +1300 Subject: [PATCH] API CHANGE Usage of FieldSet is deprecated, use FieldList instead --- forms/ComplexTableField.php | 4 ++-- forms/TableField.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index 062836486..4bebb9319 100644 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -328,7 +328,7 @@ JS; } /** - * @return FieldSet + * @return FieldList */ function createFieldSet() { $fieldset = new FieldList(); @@ -359,7 +359,7 @@ JS; * this method. */ function getCustomFieldsFor($childData) { - if($this->detailFormFields instanceof FieldSet) { + if($this->detailFormFields instanceof FieldList) { return $this->detailFormFields; } diff --git a/forms/TableField.php b/forms/TableField.php index 12bca602f..462f28969 100644 --- a/forms/TableField.php +++ b/forms/TableField.php @@ -278,7 +278,7 @@ class TableField extends TableListField { * transformation if {@link $IsReadonly} is set, or the current user * doesn't have edit permissions. * - * @return FieldSet + * @return FieldList */ function FieldSetForRow() { $fieldset = new FieldList(); @@ -624,7 +624,7 @@ class TableField_Item extends TableListField_Item { /** * Represents each cell of the table with an attribute. * - * @return FieldSet + * @return FieldList */ function createFields() { // Existing record