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().
This commit is contained in:
uniun 2013-04-17 18:42:48 +03:00 committed by Ingo Schommer
parent 2523dfbe95
commit 4d70daa9e2

View File

@ -556,7 +556,7 @@ class Form extends RequestHandler {
* @return FieldList
*/
public function HiddenFields() {
return $this->fields->HiddenFields();
return $this->Fields()->HiddenFields();
}
/**
@ -564,7 +564,7 @@ class Form extends RequestHandler {
* Useful when making your own simplified form layouts.
*/
public function VisibleFields() {
return $this->fields->VisibleFields();
return $this->Fields()->VisibleFields();
}
/**