Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BUG: HiddenFields and VisibleFields should always return extraFields
HiddenFields() and VisibleFields() should always return extraFields, e.g. HiddenFields doesn't return SecurityID if it is called before Fields().
  • Loading branch information
elvinas-liut authored and chillu committed Apr 17, 2013
1 parent 2523dfb commit 4d70daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forms/Form.php
Expand Up @@ -556,15 +556,15 @@ public function Fields() {
* @return FieldList
*/
public function HiddenFields() {
return $this->fields->HiddenFields();
return $this->Fields()->HiddenFields();
}

/**
* Return all fields except for the hidden fields.
* Useful when making your own simplified form layouts.
*/
public function VisibleFields() {
return $this->fields->VisibleFields();
return $this->Fields()->VisibleFields();
}

/**
Expand Down

0 comments on commit 4d70daa

Please sign in to comment.