mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
2523dfbe95
commit
4d70daa9e2
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user