Permalink
Browse files

API CHANGE Usage of FieldSet is deprecated, use FieldList instead

  • Loading branch information...
1 parent bf73265 commit b6f88036eb4de556a1ac410326e7742223a43e9e Stig Lindqvist committed with stojg Sep 26, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 forms/ComplexTableField.php
  2. +2 −2 forms/TableField.php
@@ -328,7 +328,7 @@ function AddLink() {
}
/**
- * @return FieldSet
+ * @return FieldList
*/
function createFieldSet() {
$fieldset = new FieldList();
@@ -359,7 +359,7 @@ function setTemplatePopup($template) {
* this method.
*/
function getCustomFieldsFor($childData) {
- if($this->detailFormFields instanceof FieldSet) {
+ if($this->detailFormFields instanceof FieldList) {
return $this->detailFormFields;
}
View
@@ -278,7 +278,7 @@ function saveInto(DataObject $record) {
* 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 @@ function __construct($item = null, $parent, $form, $fieldTypes, $isAddRow = fals
/**
* Represents each cell of the table with an attribute.
*
- * @return FieldSet
+ * @return FieldList
*/
function createFields() {
// Existing record

0 comments on commit b6f8803

Please sign in to comment.