Skip to content

Commit

Permalink
API CHANGE Usage of FieldSet is deprecated, use FieldList instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Stig Lindqvist authored and Stig Lindqvist committed Sep 27, 2011
1 parent bf73265 commit b6f8803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions forms/ComplexTableField.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function AddLink() {
}

/**
* @return FieldSet
* @return FieldList
*/
function createFieldSet() {
$fieldset = new FieldList();
Expand Down Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions forms/TableField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b6f8803

Please sign in to comment.