Permalink
Browse files

ENHANCEMENT #4787 Widget now respects updateCMSFields on extension cl…

…asses 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
  • Loading branch information...
1 parent f86c05b commit 1eb795989633b2af143ea6a6c929636ef30a55f1 @chillu chillu committed May 25, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 widgets/Widget.php
View
@@ -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;
}
/**

0 comments on commit 1eb7959

Please sign in to comment.