mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT #4787 Widget now respects updateCMSFields on extension classes so additional fields can be add (or existing ones removed) (from r99929)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105541 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f86c05ba08
commit
1eb7959896
@ -35,7 +35,9 @@ class Widget extends DataObject {
|
||||
static $description = "Description of what this widget does.";
|
||||
|
||||
function getCMSFields() {
|
||||
return new FieldSet();
|
||||
$fields = new FieldSet();
|
||||
$this->extend('updateCMSFields', $fields);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user